English

What is the class?

Advertisements

Question

What is the class?

Short Answer
Advertisements

Solution

Classes and Objects are the key features of Object-Oriented Programming. Class is the main building block in Python. The object is a collection of data and functions that act on those data. Class is a template for the object. According to the concept of Object-Oriented Programming, objects are also called instances of a class or class variables.

shaalaa.com
Introduction to Python Classes and Objects
  Is there an error in this question or solution?
Chapter 10: Python Classes and objects - Evaluation [Page 187]
Advertisements
Share
Notifications



      Forgot password?
Use app×