how can i inharit multiple classes?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is .net remoting?

579


Is viewstate secure?

521


What is the difference between debug and release?

532


What is the meaning of TestApi?

640


How dataadapter.fill works?

569






What are the different ways you would consider sending data across pages in ASP (i.e between asp to asp)?

576


Explain difference between dataset and datareader?

612


How can you make sure that web api returns json data only?

533


Why is xap important?

612


How to retrieve user name in case of Window Authentication?

289


Less than one page, how many windows will you be able to maintain?

577


What does mean by a neutral culture?

611


Why is asp.net so popular?

517


Can we set master page as a start page?

555


How to make paging concepts in datagrid in ASP.NET?

559