Answer Posted / jitendra rajurkar
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 |
Post New Answer View All Answers
What is the significance of classes in oop?
What are the 4 main oop principles?
What is the purpose of polymorphism?
What is difference between inheritance and polymorphism?
What are the features of oop?
What is object in oop?
write a program to find 2^n+1 ?
Which language is not a true object oriented programming language?
What is destructor give example?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
What is encapsulation c#?
How do you define social class?
What is abstraction and encapsulation?
How do you achieve polymorphism?
Why do we use encapsulation in oops?