What is a mixin class?

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


Please Help Members By Posting Answers For Below Questions

Who invented oop?

659


State what is encapsulation and friend function?

700


How many human genes are polymorphic?

576


What is the point of oop?

656


How oops is better than procedural?

589






What is class encapsulation?

597


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

1623


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6155


What does it mean when someone says I oop?

587


How long to learn object oriented programming?

565


How do you answer polymorphism?

577


What is inheritance in oop?

604


What is oops and its features?

591


What does and I oop mean in text?

625


What is the example of polymorphism?

562