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

What is parallel computing?

0 Answers  


What is the difference between an application and a program?

0 Answers  


What is the importance of updatepanel control?

0 Answers  


Can you explain update progress control?

0 Answers  


How many types of languages does .net support? name at least 10-15?

12 Answers   Interac, Six Sigma, TechUnity,


what are ACID properties ?

3 Answers  


Explain about continuable exceptions?

0 Answers  


4. Wcf- what Asych and Sych call and how that works

0 Answers   PCS,


If I'm developing an application that must accomodate multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?

3 Answers   Hologic, Siebel,


IS IT Possible to inherit the AJAX page from child class which(child) is inherit from page class.Because i should apply some security in child class

0 Answers   IBM,


What is Video Streaming in .net??

0 Answers   Infosys,


How to improve the cache performance? : .NET Architecture

0 Answers  


Categories