This repository contains topic-wise C++ programs and notes that demonstrate the core concepts of Object Oriented Programming (OOP) using simple, readable, and exam-oriented examples.
The code is written with the intention of helping college students understand how OOP concepts actually work in C++, not just their definitions.
- Learn OOP concepts through working C++ programs
- Understand access specifiers, inheritance behavior, static members, and dynamic memory
- Prepare for semester exams, viva, and interviews
- Maintain a clean reference for quick revision
- OOP basics (classes, objects, member functions)
- Abstraction and encapsulation
- Inheritance (single, multilevel, multiple)
- Access specifiers (
public,protected,private) - Polymorphism
- Static data members and static member functions
- Dynamic memory allocation
- Copy constructor and destructor
- Operator overloading (theory notes)
- Friend functions, inline functions, and macros
Use any standard C++ compiler:
g++ filename.cpp
./a.outExample:
g++ Inheritance.cpp
./a.out- B.Tech / BE / BCA / MCA students
- Beginners learning OOP in C++
- Students preparing for exams, viva, and placements
- Anyone revising core OOP concepts
- Each file focuses on one concept at a time
- Code is written for clarity, not optimization
- Comments explain why something works or fails
Maintained as a personal learning and revision repository for Object Oriented Programming in C++.
Feel free to use this repository for educational purposes.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
β If you find this repository helpful, please consider giving it a star!