What are classes and objects in python?

775    Asked by SuhaniRodrigues in Data Science , Asked on Dec 15, 2019
Answered by Nitin Solanki

 Python supports the OOPs concept instead of Procedural oriented language where the focus is on functions, whereas object-oriented programming language concept focused on objects.

The collection of variables and function/methods is known as an object that acts on data and class is a technical drawing of the object.

For example, if a variable name address is a class then this class might specify the name, street, ZIP and city for every address object and employee address, permanent address, supplier address could be the object of this address class.



Your Answer

Interviews

Parent Categories