class A{
void printAString(){
System.out.println("a string");
}
}
class B extends A{
void printBString(){
System.out.println("b string");
}
}
class Test1{
public static void main(String[] args){
A object = new B();
System.out.println(object.getClass());
object.printAString();
object.printBString();
}
}