Customer - { this.name = name; } public String getName() {...

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 DocumentRight 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

This note was uploaded on 03/25/2010 for the course CIS CIS3023 taught by Professor Seema during the Spring '10 term at Florida College.

Page1 / 2

Customer - { this.name = name; } public String getName() {...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online