Class A { void add(); } class B { void add();}class Ex {public static void main(string args[]) {A a=new B();B b=new A();a.add();b.add();}What is the result;

Showing Answers 1 - 3 of 3 Answers

agsuvidha

  • Aug 14th, 2007
 

There is an error in this program.
as if u see clearly, class A is an abstract class and abstract class can not be instantiated.


  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions