package tutorial.base;
public class TypesTutorial {
public static void main(String... args) {
A alpha = new B();
}
}
class A {
A(){
System.out.print("A");
a();
}
void a() {
System.out.print("a");
}
}
class B {
B() {
System.out.print("B");
a();
}
void a() {
System.out.print("b");
}
}
Login in to like
Login in to comment