Posts

Showing posts from May, 2025

1. topics (Apna College)

Image
Reusability create classes => define their properties & functions => create objects out of it properties of an object of a class can be altered using dot operator shallow copy is problematic in case of dynamic memory allocation ----------------------------------------------------------------------------------------------------------- 1. objects - entities created out of a class 2. classes - blueprint 3. properties/ attributes 4. functions/ methods/ member functions ------------------------------------------------------------------------------------------------------------- 5. constructor - function with no return type, called only once at initialization of object                            - non-parameterized, parameterized, copy                              - non parameterized are automatically called   ...