WEB DEVELOPER SITE
PYTHONPHPJAVA
 

C++ CLASS



Objects are created using classes, which are actually the focal point of OOP.

Each class has a name, and describes attributes and behavior.

a class can be described as an object's blueprint, description, or definition.

Method

Methods are similar to functions - they are blocks of code that are called, and they can also perform actions and return values.

Class Example

attributes: accountNumber, balance, dateOpened behavior: open(), close(), deposit()

The class specifies that each object should have the defined attributes and behavior. However, it doesn't specify what the actual data is; it only provides a definition.