Summary
A
class is a blueprint for
objects. It groups
attributes and
methods. A
class_definition names the
class_name and declares members. A
constructor initializes a new
instance. Use
this_keyword or
self_keyword to refer to the current object.
encapsulation hides data with
access_modifiers.
inheritance lets a class extend a
base_class.
polymorphism lets methods share a name with different behavior.
class_methods belong to the class, and
instance_methods belong to each object. Create objects with
instantiation.