Category Object Oriented Programming

Lecture 12 – Composition and Aggregation

Composition and Aggregation

Understand Composition and Aggregation in Object-Oriented Programming. Learn the “has-a” relationship, difference between inheritance and composition, and explore real-world examples like Car and Engine in C++ and Java. Introduction So far, we’ve learned about Inheritance (the is-a relationship) where a…

Lecture 13 – Exception Handling

Exception Handling

Learn about Exception Handling in Object-Oriented Programming. Understand the difference between errors and exceptions, master try-catch blocks, and explore how to create custom exception classes in C++ and Java with examples. Introduction In programming, errors are unavoidable but how we…