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 are the elements of a website?

0 Answers  


asp.net page is a object or not?

5 Answers  


What is session id in web application?

0 Answers  


Define secured sockets layer.

0 Answers  


what is profiles in asp.net

1 Answers  






How do you handle server controls?

0 Answers   Cap Gemini,


What are the types of authentication in asp.net?

0 Answers  


Define repository pattern in mvc.net? : asp.net mvc

0 Answers  


What are the memory-mapped files?

0 Answers  


Difference b/w casting and boxing?

5 Answers   IBS,


what is the uses Of Global.asax

3 Answers  


Can you explain one critical mapping? Performance issue which one is better?

0 Answers  


Categories