Wednesday, August 12, 2015

What is class

 https://www.jeffknupp.com/blog/2014/06/18/improve-your-python-python-classes-and-object-oriented-programming/

Class: Grouping of related data and functions. The function associated with class is referred as method.


#Class and object:
Classes can be thought of as blueprints for creating objects. When I define a Customer class using the class keyword, I haven't actually created a customer. Instead, what I've created is a sort of instruction manual for constructing "customer" objects.

No comments:

Post a Comment