implementing an abstract class jaav
interface human {
void dothings();
void eatthings();
void sleep();
}
abstract class student implements human {
public void dothings()
{
System.out.println("doing something");
}
public void eatthings()
{
System.out.println("eating something");
}
}
class basisstudent extends student {
public void sleep()
{
System.out.println("no");
}
}
public class Main {
public static void main(String[] args)
{
basisstudent you = new basisstudent();
you.dothings();
you.eatthings();
you.sleep();
}
}