What is a mixin class?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
What is extreme programming?
what is the difference between function template and template of function?explain with example.
What are the main differences between procedure oriented languages and object oriented languages?
9 Answers IBM, Infosys, Wipro,
Why static Function is used in C++?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
When is it necessary to use member-wise initialization list in C++?
A file pointer always contains the __________ of the file
What are oops functions?
What is the default size allocated for array in the statement if size not specified " int a[] "
How do you achieve runtime polymorphism?
WHAT'S THE OOPS BASIC OOPS CONCEPTS IN DOTNET
What is meant by oops concept?