posted 24 years ago
Employee is a Person that has a Date of employment, vector with appointment dates, and ID integer number. Declare a class using only the above data.
should i declare it as:
class Employee extends Person{
Date ;
Vector;
int;
}
or as
class Employee extends Person{
Date Dateofemployment;
Vector appointmentdates;
int ID;
}
is it necesary that i declare class to be public??
if i have single row of textfield to answer can i answer it this way:
class Employee extends Person{Date;int;Vector;}
please help me.
thanks