What is shared inheritance

Answer Posted / kiruthika.d

The mechanism of deriving a new class from an existing class
is called inheritance. Shared inheritance introduces a new
opportunity of ambiguity and additional implementation
complexity. Assume D inherits from B and C, both of which
inherits from A. Here A in shared. Single copy made from
both derived classes is called shared inheritance.

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we set the class to be inherited, but prevent the method from being over-ridden?

474


What are the methods in c#?

522


How do you remove white spaces from a string?

489


Can we have multiple constructors in a class c#?

495


Different between method overriding and method overloading?

478






What is extension method in c# and how to use them?

470


Is c# easier than c++?

530


Constructor to an arbitrary base constructor?

557


How do I create multifile assembly?

500


Why do we need static class in c#?

568


Can you declare a field readonly?

534


What is global asax in c#?

514


What is garbage collector and where should you use in .NET?

511


what is the difference between the debug class and trace class?

512


Explain what is an interface in c#?

515