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 serialization, how it works in .NET?

1 Answers  


What is .net mobile input validation. : Microsoft dot net mobile

0 Answers  


what is diffrent beatween localprinter and networkprinter

0 Answers  


What is a clickonce application?

0 Answers  


What is the main Difference Between .Net 2003 and .Net 2005.and also Asp1.1,Asp2.0 and Asp3.0

4 Answers   Satyam, TCS,






difference between page init an page load

1 Answers   PCS,


Define pipelining? : Dot net architecture

0 Answers  


what is a namespace?how they are classified?write a program which contains class,object,inheritance?

0 Answers   Six Sigma,


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

0 Answers  


which is the institute in hyderabad for providing the live project industry training

0 Answers  


Does application frame need host?

0 Answers  


Explain the race around condition? : .NET Architecture

0 Answers  


Categories