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
12. Types of polymorphisem[Run and Design Exp.]
How to improve the cache performance? : .NET Architecture
Define the mesi? : Dot net architecture
Explain difference between state server and sqlserver? : .NET Architecture
Use of Enable view state ? if turn off what happen ?
What is Opf3
What is .net mobile automatic paging? : Microsoft dot net mobile
Is .net easier than java?
Explain the Lapsed Listener problem in .net
Explain the purpose of cache? How is it used? : .NET Architecture
What is a clickonce application?
What is cookie less session?
What is gui programming? : .NET Architecture
What is the purpose of Accordian in jquery? Where it can be used?
Explain .net mobile events? : Microsoft dot net mobile