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 static in oop?

842


Advantage and disadvantage of routing in telecom sector

1057


What is the fundamental idea of oop?

886


write a C++ program for booking using constructor and destructor.

2299


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2328


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2305


What do you mean by overloading?

828


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

6405


What is object in oop with example?

986


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

2388


what is graphics

2232


write string class as your own class in java without using any built-in function

2239


What is encapsulation in ict?

834


Why is static class not inherited?

851


What is polymorphism and types?

868