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

Get me an image implementation program.

1761


Is react oop?

842


what are the realtime excercises in C++?

2576


What are two types of polymorphism?

834


What causes polymorphism?

854


what are the ways in which a constructors can be called?

1818


What are the types of abstraction?

795


What polymorphism means?

828


How can you overcome the diamond problem in inheritance?

982


What is oops concept with example?

797


What is interface in oop?

892


What are the advantages of polymorphism?

788


What is pure oop?

879


Why do we use oops?

788


What is class and example?

835