13 lines
375 B
Java
13 lines
375 B
Java
public class PersonalContact extends GenericContact implements Callable{
|
|
String birthdate;
|
|
String commentary;
|
|
String address;
|
|
|
|
String getInfo(){
|
|
return this.name + " " + this.number + " " + this.birthdate + " " + this.commentary + " " + this.address;
|
|
}
|
|
|
|
public void call(){
|
|
System.out.println("Совершён звонок!");
|
|
}
|
|
} |