Mphasis Interview Question

What is a class in OOP?

Interview Answer

Anonymous

Sep 28, 2019

In object-oriented programming , a class is a template definition of the method s and variable s in a particular kind of object . Thus, an object is a specific instance of a class; it contains real values instead of variables. The class is one of the defining ideas of object-oriented programming.