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 advantage of inheritance?
What is the example of polymorphism?
Which language is not a true object oriented programming language?
Why is oop better than procedural?
Why do we use class?
Can bst contain duplicates?
is there any choice in opting subjects like 4 out of 7
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
#include
Can you inherit a private class?
What is the diamond problem in inheritance?
What is oops with example?
What is polymorphism and why is it important?
What is class and object with example?