I do not understand this Java behavior. I have two classes:
class C1 { public void m1(double num) { System.out.println(\"Inside C1.m1(): \" + num
By looking at your code, you are not taking advantage of inheriting to get the answer you want. You have to change this line
C1 c = new C2();
to
C2 c = new C2();