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?s the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"?

5 Answers   SLC Ltd,


what is webservices. howit is use in our project .

1 Answers   Patni,


Explain the use of duration attribute of @outputcache page directive.

0 Answers  


Can private assembly be used for more than one application? If so how?

7 Answers   Satyam,


What is application session?

0 Answers  






How to configure a website without using IIS.

3 Answers   CGI,


Explain the concept of event bubbling in ASP.NET?

0 Answers   Sans Pareil IT Services,


What are the server control tags in asp.net.?

0 Answers   MCN Solutions,


what is abstract class and method..

2 Answers  


What is the state management in asp.net?

0 Answers  


When is validation done on the client? How does client-side validation improve the efficiency of an application?

1 Answers  


Difference between Response.redirect vs server.transfer?

0 Answers  


Categories