What is a mixin class?

Answers were Sorted based on User's Feedback



What is a mixin class?..

Answer / suman

is a class that provide certain functionality that other
class can inherit, but it is not meant to be a standalone
class.
Kind of an interface where soem members are predefined.

Pyhton and Ruby supports mixin. .Net does not.Can simulate
using Castle.DynamicProxy

Is This Answer Correct ?    1 Yes 0 No

What is a mixin class?..

Answer / sonali

A class that provides some but not all of the
implementation for a virtual base class is often called
mixin. Derivation done just for the purpose of redefining
the virtual functions in the base classes is often called
mixin inheritance. Mixin classes typically don't share
common bases..

Is This Answer Correct ?    7 Yes 8 No

What is a mixin class?..

Answer / 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

What is a mixin class?..

Answer / 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

More OOPS Interview Questions

How do you define a class in oop?

0 Answers  


what is object oriented programming and procedure oriented programming?

3 Answers  


what is an instance of a class

5 Answers  


why oops need in programming

7 Answers   TCS,


Out of 4 concepts, which 3 C++ Follow?

1 Answers   TCS,






What is abstraction oop?

0 Answers  


What is constructor in oop?

0 Answers  


What is encapsulation in oops?

0 Answers  


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

0 Answers  


What will happen when the following code is run: int x; while(x<100) { cout<<x; x++; } 1) The computer will output "0123...99" 2) The computer will output "0123...100" 3) The output is undefined

7 Answers  


WHY FUCTION OVERLOADING DOSENOT RETURN A RETEN TYPE

2 Answers  


What is the difference between XML Web Services using ASMX and .NET Remoting using SOAP?

1 Answers  


Categories