public interface ILeanable{
public void stuy();
}
public interface ITeacher{
public void teach();
}
public class Person{
String name;
}
public class Student extends Person implements ILeanable{
int age;
String address;
}
public class Teacher extends Person implements ITeacher{
String major;
int age;
}
class Person {
public String name;
}
interface ILeanale{
public void study();
}
interface ITeacher{
public void teach();
}
class Student extends Person implements ILeanale {
private int age;
private String address;
@Override
public void study() {
// TODO Auto-generated method stub