Skip to main content

Blog Archive for awaisbajwa during January 2007

I have two classes .... Class A public abstract class A { int a = 8; public A() { show(); } abstract void show(); } And following is a class Trick extending class A. public class Trick extends A{ int a = 90; void show(){ System.out.println( "value of a is " + a); } public static void main(String args[]){ new Trick(); } } What is the output of the main method of class Trick ???...