{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Customer - this.name = name public String getName return...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.util.Date; i public class Customer { private String name; private int age; private Date enrollDate; p public Customer() { this.name = new String(); this.age = 0; this.enrollDate = new Date(); t } public Customer(String name) { this.name = name; this.age = 0; this.enrollDate =enrollDate; } public Customer(String name, int age, Date enrollDate) { setName(name); setAge(age); setEnrollDate(enrollDate); } public void setName(String name)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { this.name = name; } public String getName() { return name; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } public Date getEnrollDate() { return enrollDate; } public void setEnrollDate(Date enrollDate) { this.enrollDate = enrollDate; } public void printCustInfo() { System.out.println(name+","+age+","+enrollDate); } }...
View Full Document

{[ snackBarMessage ]}