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 the main difference between sizeof() operator in c and c++
monkey starts climbing up a tree 20ft tall,each hour ,it hops 3ft and slips back by 2ft .how much time it wil tak to reach top of the tree?
Can we override main method?
What is operator overloading? Give Example
11 Answers CTS, IBM, TCS,
Why is polymorphism needed?
officer say me - i am offered to a smoking , then what can you say
write string class as your own class in java without using any built-in function
What is byval and byref? What are differences between them?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
Why is abstraction needed?
what is ltti
What is encapsulation process?