how can i inharit multiple classes?

Answers were Sorted based on User's Feedback



how can i inharit multiple classes?..

Answer / ajith krishnan

use intefaces...cool

Is This Answer Correct ?    11 Yes 1 No

how can i inharit multiple classes?..

Answer / rajkumar

.net framework does not support multiple inheritance so should ascertain this to ur interviewer

Is This Answer Correct ?    3 Yes 0 No

how can i inharit multiple classes?..

Answer / ratnesh

If u want to multiple inheritance via classes then u can do
this ..

class A
{
Method1(){}
}

class B:A
{
Method2(){}
}


And now create third class suppose C and Inherit it from
class B.Now class C have both methods Method1 of A and
Method2 of B.

class C:B
{

}

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More ASP.NET Interview Questions

What is asynchronous call?

0 Answers  


Explain about asp.net state management?

0 Answers  


How many web.config files can I have in an application?

0 Answers  


What is the concept of postback in asp.net?

0 Answers  


How do I force the dispose method to be called automatically, as clients can forget to call dispose method?

0 Answers  






Briefly describe different techniques for ASP.NET State Management?

6 Answers   Deloitte, Syntax Softtech,


i wand basic interview based questions in asp.net and vb.net

0 Answers   Legio Infotech,


What is css in asp.net?

0 Answers  


What is the difference between and ActiveX dll and control?

2 Answers   Microsoft,


When would you set a control's AutoPostBack property to true?

1 Answers  


What are the different types of validation controls in asp.net?

0 Answers  


relacement of websevices in .net 3.0?

1 Answers   Mind Tree,


Categories