jitendra


{ City } pune
< Country > india
* Profession * sr. software developer
User No # 76090
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 2
Users Marked my Answers as Wrong # 0
Questions / { jitendra }
Questions Answers Category Views Company eMail




Answers / { jitendra }

Question { TCS, 8070 }

What is multiple inheritance?


Answer

In .Net realm a child class can inherit methods and
properties from only one parent class and that parent class
can be either abstract class or any other class.Also Child
class can inherit methods and properties from multiple
interfaces.

class DerivedClass:AbstractClass,InterafaceA,InterfaceB
{
public void main()
{
DerivedClass obj o = new DerivedClass();
o.MethodfromAbstractclass;
o.MehtodfromInterfaceA;
o.MethodfromInterfaceB;
}
}

Is This Answer Correct ?    2 Yes 0 No