Computer Science, asked by sudhanshubaigra90, 11 months ago

what is class in python​

Answers

Answered by sasidharreddy123
2

Python Classes and Methods:

Python is an “object-oriented programming language.” This means that almost all the code is implemented using a special construct called classes. Programmers use classes to keep related things together. This is done using the keyword “class,” which is a grouping of object-oriented constructs.

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. This object will then be called the instance of the class. In Python we create instances in the following manner

Instance = class(argument)

hope this helps u......

pls mark as brainliest answer.........

Similar questions