228k views
2 votes
What is class in python

2 Answers

6 votes

Answer:

What is a class? A class is a code template for creating objects. Objects have member variables and have behaviour associated with them. In python a class is created by the keyword class . An object is created using the constructor of the class.

User Aqn
by
5.2k points
1 vote

Answer:

It is a code template for creating objects.

User Lance Rushing
by
4.5k points