What is an orthogonal base class?
Answers were Sorted based on User's Feedback
Answer / prasant
When two base classes have no overlapping properties or
methods they are said to be orthogonal to each other. A
class can be derived from these two base classes with no
difficulty.
Is This Answer Correct ? | 9 Yes | 1 No |
Answer / harendra pal
If two base classes have no overlapping methods or data they are said to be independent of, or orthogonal to each other. Orthogonal in the sense means that two classes operate in different dimensions and do not interfere with each other in any way. The same derived class may inherit such classes with no difficulty.
Is This Answer Correct ? | 0 Yes | 0 No |
What is the purpose of polymorphism?
Where You Can Use Interface in your Project
What is encapsulation process?
How do you achieve runtime polymorphism?
What is Agile methodology?
20 Answers ABC, Accenture, College School Exams Tests, Inmar, Microsoft, Sapient,
for example A,B,C,D are class all the 4 class contain one method who() but the method who() implementaion is differnet among each class. the relation among the 4 class are A is base class and is inherited by B and C.and from this two B and C where D is inherited. the question is i want to display the output who() method in all the classes(A,B,C,D)the output of who() method is diferrent amond all the class(A,B,C,D) ------A------ virtuval who(print a) override | | who(print b) B C override who(print c) | | -------D------ override who(print d)
What is encapsulation with real life example?
What are the benefits of interface?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is the difference between static polymorphism and dynamic polymorphism?
What are functions in oop?
explain the concepts of oops?