All study guides Start reading
Object-Oriented Programming
Classes and objects, the four pillars, polymorphism, constructors, friend functions and advanced C++, with code.
- 14 topics · 14 diagrams
- ~38 min in total
- A quick test in every topic
Not started yet
Topics
- 1Introduction to Object-Oriented Programming (OOP vs. POP)Object-Oriented Programming (OOP) is a programming paradigm based on the concept of "objects", which contain data members (attributes) and member…
- 2Classes and Objects (Memory Allocation: Stack vs. Heap)A Class is a user-defined blueprint or data type that specifies properties (data members) and behaviors (member functions). An Object is a self-contained…
- 3Access Specifiers & Data HidingAccess Specifiers (or Access Modifiers) are keywords in object-oriented languages that define the accessibility or scope of class members (data members…
- 4EncapsulationEncapsulation is the mechanism of wrapping data (variables) and code (methods) together into a single unified unit called a Class, while restricting…
- 5Data AbstractionData Abstraction is the property of presenting only essential features and operations of an object to the outside world while hiding the complex,…
- 6Inheritance & Inheritance HierarchiesInheritance is the mechanism by which one class (the derived/child class) acquires the attributes and behaviors of another class (the base/parent class).…
- 7Compile-Time Polymorphism (Function & Operator Overloading)Compile-Time Polymorphism (also called Static Polymorphism or Early Binding) is a mechanism where the specific function or operator to be invoked is…
- 8Runtime Polymorphism (Virtual Functions & Dynamic Binding)Runtime Polymorphism (also called Dynamic Polymorphism or Late Binding) is a mechanism where a call to an overridden member function is resolved at…
- 9Constructors and DestructorsA Constructor is a special member function of a class that is invoked automatically whenever an object of that class is instantiated. It initializes…
- 10The this Pointer & Static MembersThe this pointer is an implicit keyword available inside non-static member functions that points directly to the invoking object instance. Static Members…
- 11Friend Functions & Friend ClassesA Friend Function is a non-member function that is granted special permission to access the private and protected members of a class. A Friend Class is a…
- 12Abstract Classes & Interfaces (Pure Virtual Functions)An Abstract Class is a class designed specifically to serve as a base blueprint and cannot be directly instantiated. In C++, a class becomes abstract when…
- 13Object Relationships: Aggregation & Association (HAS-A vs. IS-A)Object Relationships define how independent classes interact and structure software architectures. Association represents a general structural…
- 14Advanced C++ OOP Mechanics (Namespaces, Inline Functions, Memory Management, Exception Handling, Structure vs. Class)Advanced C++ OOP mechanics encompass specialized runtime and compile-time features including Namespaces (scope isolation), Inline Functions (macro-like…
