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 does the hotspot class in .net do?

0 Answers  


What is the differences between a primary key and a unique key in sql server?

0 Answers  


How to unit test Web API?

0 Answers  


What is the viewstate in asp.net?

0 Answers  


What are ASP.NET Web Forms? How is this technology different than what is available though ASP (1.0-3.0)?

1 Answers  


Explain about Application and Session Events ?

0 Answers  


Hi! Could any 1 please suggest me a free practice online exam for asp.net exams.. thanks

1 Answers  


what are partial classes and their use?

1 Answers   Patni,


Explain the concept of event bubbling in ASP.NET?

0 Answers   Sans Pareil IT Services,


How can you handle exceptions in asp.net?

0 Answers  


what are the security certificates used in webservices?

0 Answers  


What Is ASPNET_WP.exe? What Is The Use Of It? In Which Place Inproc Session Stored ? Explain Session State ?

2 Answers   Phoenix Technologies,


Categories