class Mammal {
public boolean hasHair =
true;
public static void
main(String args[]){
Mammal m
= new Mammal();
System.out.println(
m.hasHair);
}
}
class Dog extends Mammal {
}
class Human extends Mammal {}
class Professor extends Human {}
class Student extends Human {}
class BaldProfessor extends
Professor {
boolean hasHair = false;
public static void
main(String args[]) {
BaldProfessor bp
= new BaldProfessor();
System.out.println(
bp.hasHair);
}
}
public class TrivialApplication {
public static void main(String args[]) {
System.out.println( "Hello dsjfkrjefunfuun!" );
}
}