jrob8577
9/11/2012 - 6:53 AM

Lecture 2 - Compostion

Lecture 2 - Compostion

public class Student 
{ 
  private Name fullName; 
  private String id; // identification number 

  public Student () 
  { 
    fullName = new Name(); 
    id = ""; 
  } // end default constructor 

  public Student (Name studentName, String studentId)
  { 
    fullName = studentName; 
    id = studentId; 
  } // end constructor 
  
  //… more methods 
 }