asked 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.

answered
User Aqn
by
9.1k points
1 vote

Answer:

It is a code template for creating objects.

answered
User Lance Rushing
by
8.3k points

No related questions found