GfG QA is closing soon... Please refer PRACTICE or GfG now on wards !!

What is a metaclass ? Explain in simple terms

asked Nov 25, 2015 by Swanky

1 Answer

Metaclass is a class which contains the instances of other class, As simple class defines behaviour of objects metaclass defines behaviour of specific classes and their objects.

the feature of metaclass is not supported by all oop languages, Main language which support metaclass feature are - Python, Ruby, objective C and Perl 

There are very few places where you may need a metaclass, but at those places other things can't be used.  

You can learn about metaclass in python from following link -

answered Dec 3, 2015 by utkarsh111