Answer Posted / reejusri
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 ? | 4 Yes | 11 No |
Post New Answer View All Answers
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What are oops methods?
How is class defined?
#include
hi all..i want to know oops concepts clearly can any1 explain??
Why interface is used?
What is the types of inheritance?
Which method cannot be overridden?
what type of question are asked in thoughtworks pair programming round ?
What is this pointer in oop?
What is overloading in oops?
What are benefits of oop?
What is encapsulation example?
What is polymorphism used for?
what is difference between class template and template class?