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

12. Types of polymorphisem[Run and Design Exp.]

1652


How to improve the cache performance? : .NET Architecture

556


Define the mesi? : Dot net architecture

540


Explain difference between state server and sqlserver? : .NET Architecture

537


Use of Enable view state ? if turn off what happen ?

3817






What is Opf3

591


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

584


Is .net easier than java?

527


Explain the Lapsed Listener problem in .net

674


Explain the purpose of cache? How is it used? : .NET Architecture

546


What is a clickonce application?

513


What is cookie less session?

577


What is gui programming? : .NET Architecture

511


What is the purpose of Accordian in jquery? Where it can be used?

1862


Explain .net mobile events? : Microsoft dot net mobile

526