class Demo6 {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
abstract class Eployee {
String name;
String Id;
int salary;
public Eployee(){}
public Eployee(String name, String Id, int age){
this.name = name;
this.Id = Id;
this.salary = salary;
}
public void setName (String name){
this.name = name;
}
public String getName(){
return this.name;
}
public void setId(String Id){
this.Id = Id;
}
public String getId(){
return this.Id;
}
public void setSalary(int salary){
this.salary = salary;
}
public int getSalary(){
return this.salary;
}
}
|
|