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 are the advantages of Web API?

829


If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) In my application?

725


How does session authentication work?

689


Where is session data stored in asp net?

692


What is server infrastructure?

797


Can we make activex dll also ti execute in some process as that of client ? How can we do?

4452


How can I have a particular web page in an asp.net application which displays its own error page?

787


What is viewstate in asp net with example?

725


How to Separate background image and front image from original picture....

743


What are the authentication types in asp.net?

775


Will session work if cookies is disabled?

736


Can you explain autopostback?

720


Why does my asp.net file have multiple tag with runat=server?

764


Can you set the session out time manually?

593


Define secured sockets layer.

698