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

Answers were Sorted based on User's Feedback



9. Oop-Class A has m1 metthode Class B has m1 metthode and C is the calss that inharits A class, A..

Answer / taipi88

If Class A inherits from Class B, but has a own Method M1,
M1 from Class A overrides M1 of Class B.

If Class A only has a M1 Method by inheriting from Class B, B.M1 will Be
called. Class C doesn't Play any Roll in this scenario.

Is This Answer Correct ?    2 Yes 1 No

9. Oop-Class A has m1 metthode Class B has m1 metthode and C is the calss that inharits A class, A..

Answer / 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

More Dot Net AllOther Interview Questions

how windows applications different from the console applications?

1 Answers   Six Sigma,


What is VSS? Use of VSS? How can we use VSS in our Application?

4 Answers  


Explain about developer benefit from memory management?

0 Answers  


How to improve the cache performance? : Dot net architecture

0 Answers  


What are the types of application software?

0 Answers  






What exactly is being serialized when you perform serialization? scope in C# ?

1 Answers  


how would you manage data if u were not to use sessions or cookies ?

2 Answers   Ness Technologies,


Can you explain scriptmanager control?

0 Answers  


Why the config file might not be writable

0 Answers  


What is serialization, how it works in .NET?

1 Answers  


How to develop mobile applications using microsoft mobile internet toolkit (mmit) or .net mobile? : Microsoft dot net mobile

0 Answers  


how many types of controls are there in windows and web application?

1 Answers   Six Sigma,


Categories