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

Explain the difference between inprocess vs out process session state : Dot net architecture

0 Answers  


Explain 'managed' mean in the .NET context

0 Answers   HCL,


what is the difference between value types and reference types?

4 Answers   Six Sigma,


What is .net viewstate?

0 Answers  


How to delete the duplicate records in a table using sql server

4 Answers  






Explain about validation?

0 Answers  


if there are two application 1 and 2 having a variable x in both app if client1 changes value of x in 1 app client 2 want reads the value of x from 2 app what resultant value will he get

0 Answers   PCS,


HI THIS IS THIRUMAL. I AM COMPLETED MY MCA IN 2009 WITH 64%. NOW I AM LOOKING FOR A JOB(FRESHER)IN HYDERABAD.PLEASE IF YOU FIND ANY OPENINGS IN ANY COMPANY SEND IT TO MY MAIL ID PLEASE.. SKILL SET : C,C++,C#.NET,ASP.NET,ADO.NET,SQL SERVER, SSIS,SSRS EMAIL ID : THIRU104@GMAIL.COM THANKS & REGARDS D.THIRUMAL

1 Answers  


What is the mesi? : Dot net architecture

0 Answers  


Explain the purpose of cache? How is it used? : Dot net architecture

0 Answers  


define cache memory? : Dot net architecture

0 Answers  


which would be the best to use inproc,outproc or sql server

2 Answers   Ness Technologies,


Categories