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 types of authentication in asp.net?

0 Answers  


What is the sequence in which ASP.NET events are processed?

0 Answers  


How can you execute stored procedure from windows application?

1 Answers   Microsoft,


what are the Custom controls in asp.net?

0 Answers   MCN Solutions,


Define xmlreader class.

0 Answers  


Is session server side or client side?

0 Answers  


Exception handling

2 Answers   Syntel,


How Web Service help? What is the difference between Remoting & Web Servcies?

2 Answers  


How do you identify that the page is postback?

0 Answers  


Can master pages be nested?

0 Answers  


What is Response.Flush method ?

3 Answers   Keane India Ltd,


What is difference between View State and Hidden Field in ASP.NET?

0 Answers  


Categories