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

This program numbers the lines found in a text file. Write a program that reads text from a file and outputs each line preceded by a line number. Print the line number right-adjusted in a field of 3 spaces. Follow the line number with a colon, then one space, then the text of the line. You should get a character at a time and write code to ignore leading blanks on each line. You may assume that the lines are short enough to fit within a line on the screen. Otherwise, allow default printer or screen output behavior if the line is too long (i.e., wrap or truncate). A somewhat harder version determines the number of spaces needed in the field for the line numbers by counting lines before processing the lines of the file. This version of the program should insert a new line after the last complete word that will fit within a 72-character line.

1865


How long to learn object oriented programming?

821


Where is pseudocode used?

746


What is purpose of inheritance?

856


What is meant by multiple inheritance?

948


What is object and example?

881


What is overriding in oops?

831


What is encapsulation example?

775


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1385


What are the 4 main oop principles?

946


Write a c++ program to display pass and fail for three student using static member function

3092


Can bst contain duplicates?

945


What is encapsulation in oops?

765


c++ program to swap the objects of two different classes

2131


What is abstraction and encapsulation?

779