ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  OOPS
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
What is a mixin class?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is a mixin class?
Answer
# 1
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 ?    0 Yes 1 No
Sonali
 
  Re: What is a mixin class?
Answer
# 2
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 ?    0 Yes 0 No
Reeju Srivastava
 
 
 
  Re: What is a mixin class?
Answer
# 3
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 ?    0 Yes 0 No
Reejusri
[********]
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
WILL I GET A guaranteed JOB AFTER DOING bsc()IT) and GNIIT from an NIIT CENTRE?? Biocon1
write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.  1
What is public, protected, private? Satyam4
What is an orthogonal base class?  1
when my application exe is running nad i don't want to create another exe what should i do HCL2
What is a scope resolution operator? HP4
what is object slicing? Wipro4
When will a constructor executed?  2
Which is the parameter that is added to every non-static member function when it is called?  3
Explain polymorphism? What r the types of polymorphism? pls give examples? HCL2
Tell us about yourself. IBM14
write a c++ program to find maximum of two numbers using inline functions.  1
What is the output of the following code: int v() { int m=0; return m++; } int main() { cout<<v(); } 1) 1 2) 0 3) Code cannot compile  3
What is command routing in MFC GE1
what is a virtual class? Cap-Gemini1
What is the Advantage of Interface over the Inheritance in OOPS?  2
pointers are support in C#? if yes then how to use it? Softvision-Solution5
What is friend function? Wipro3
what is multi level inheritance give n example ? Ness-Technologies2
What is encapsulation? TCS8
 
For more OOPS Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com