9. Oop-Class A has m1 metthode Class B has m1 metthode and
C is the calss that inharits A class, A class inharits B
class. If Object dim c as new A() c.m1(), Tell me which
mettode of class will call

Answer Posted / amit sinha

If ClassA has m1 method, ClassB has also m1 method. ClassC
inheriting classA and ClassA inheriting ClassB then

ClassA a = new ClassC()

a.m1 will call ClassA m1 method not of ClassB. but is
ClassA don't have m1 then a.m1 will call ClassB m1 method.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is .net easier than java?

701


how to create applications by using Visual Studio 2012?

741


What does the term "green architecture" mean? : Dot net architecture

676


what is inheritancy where u required ?

1741


How can I create a application?

708


What is Com Callable wrapper?when it will created?

734


What is a managed code? : Dot net architecture

751


What are the types of application software?

723


What is the mesi? : Dot net architecture

735


What is .net mobile automatic paging? : Microsoft dot net mobile

781


Describe the advantages of writing a managed code application instead of unmanaged one. What is involved in certain piece of code being managed?

825


What is code access security (cas)?

770


What is the difference between l1 and l2 cache? : Dot net architecture

729


Differnce between managed code and unmanaged code ?

744


Explain dma? : Dot net architecture

789