Skip to content

This repository contains clean and practical implementations of essential Object-Oriented Programming (OOP) concepts. It is designed as a reference for learners, interview preparation, and anyone wanting a strong hands-on understanding of OOP.

Notifications You must be signed in to change notification settings

ShadowKing47/OOPs

Repository files navigation

Object-Oriented Programming (OOP) Concepts — Complete Example Repository

This repository contains clean and practical implementations of essential Object-Oriented Programming (OOP) concepts.
It is designed as a reference for learners, interview preparation, and anyone wanting a strong hands-on understanding of OOP.


Key OOP Concepts Implemented

1. Encapsulation

  • Private/protected data members
  • Getter & setter methods
  • Controlled access to object state

2. Abstraction

  • Abstract base classes
  • Interfaces (pure virtual functions)
  • Hiding implementation details

3. Inheritance

  • Single and multi-level inheritance
  • Reusing behavior through parent-child relationships
  • Constructor chaining & use of super / Base

4. Polymorphism

  • Function overloading (compile-time)
  • Function overriding using virtual functions (runtime)
  • Dynamic dispatch

Additional Features Covered

** Static Keyword**

  • Static data members shared across all objects
  • Static member functions
  • Use cases for global counters, object tracking, utility functions

** Virtual Functions**

  • Base class pointer referencing derived objects
  • Behavior customization using overridden methods
  • Runtime polymorphism explained with clear examples

** Vector Usage (C++ STL)**

  • Demonstrating object storage using std::vector
  • Dynamic resizing & memory management
  • Storing and iterating over objects using vectors
  • Passing vectors to functions & returning vectors

About

This repository contains clean and practical implementations of essential Object-Oriented Programming (OOP) concepts. It is designed as a reference for learners, interview preparation, and anyone wanting a strong hands-on understanding of OOP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages