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

Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?

619


how to write html code with ssl

1521


How is session id generated?

453


What is data caching?

547


How we can force all the validation controls to run?

525






Can we override the enablepartialrendering property of the scriptmanager class?

639


Which class is used to send an email message from an ASP.NET Web page?

536


How can you apply a theme to your asp.net application?

533


What is asp according to you?

524


What is the difference between typeof() vs gettype()?

549


What is the difference between session and viewstate in asp.net?

602


Define page output caching?

572


What are the different types of sessions in asp.net?

488


What is asp.net web application?

519


Explain about the .NET framework?

567