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
Is .net easier than java?
how to create applications by using Visual Studio 2012?
What does the term "green architecture" mean? : Dot net architecture
what is inheritancy where u required ?
How can I create a application?
What is Com Callable wrapper?when it will created?
What is a managed code? : Dot net architecture
What are the types of application software?
What is the mesi? : Dot net architecture
What is .net mobile automatic paging? : Microsoft dot net mobile
Describe the advantages of writing a managed code application instead of unmanaged one. What is involved in certain piece of code being managed?
What is code access security (cas)?
What is the difference between l1 and l2 cache? : Dot net architecture
Differnce between managed code and unmanaged code ?
Explain dma? : Dot net architecture