What is a mixin class?

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


Please Help Members By Posting Answers For Below Questions

What is for loop and its syntax?

596


What is the purpose of enum?

579


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1652


What is polymorphism explain?

682


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1537






Who invented oop?

649


What are the 5 oop principles?

596


Why do we use oops?

589


Which method cannot be overridden?

574


What is the significance of classes in oop?

587


What is polymorphism oop?

619


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1648


What does and I oop and sksksk mean?

648


What is the real time example of encapsulation?

591


write a program to find 2 power of a 5digit number with out using big int and exponent ?

1891