Answer Posted / reeju srivastava
Mixin is a class that does not implement any method but are
in fact has only pure virtual methods. The implementor
decides the logic for these methods.
The term mixin were originally explored in the Lisp
language In C++, the term has been used to describe classes
in a particular (multiple) inheritance arrangement:
As superclasses of a single class that themselves have a
common virtual base
class .
We would like to specify an extension without pre-
determining what exactly it can extend. This is equivalent
to specifying a subclass while leaving its superclass as a
parameter to be determined later. The benefit is that a
single class can be used to express an incremental
extension, valid for a variety of classes.
Is This Answer Correct ? | 3 Yes | 19 No |
Post New Answer View All Answers
What is a null tree?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
How oops is better than procedural?
Why is polymorphism used?
What is the advantage of oop over procedural language?
What is inheritance write a program to show use of inheritance?
#include
What is the purpose of enum?
Why do we use polymorphism in oops?
What is difference between multiple inheritance and multilevel inheritance?
what type of question are asked in thoughtworks pair programming round ?
What is methods in oop?
What is encapsulation with example?
How do you achieve polymorphism?
What is difference between polymorphism and inheritance?