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

How many human genes are polymorphic?

796


what are the different types of qualifier in java?

2023


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1625


#include #include #include #include void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort

2379


What is interface in oop?

884


What is static in oop?

831


Why multiple inheritance is not allowed?

826


What are the types of abstraction?

782


What is byval and byref? What are differences between them?

1957


Get me an image implementation program.

1744


Which language is not a true object oriented programming language?

877


How Do you Code Composition and Aggregation in C++ ?

24730


When not to use object oriented programming?

783


What is destructor in oop?

800


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

2065