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