Skip to content

A comprehensive C++ OOP archive for BSSE Semester 2 at UBIT. Optimized solutions for Robert Lafore's textbook.

License

Notifications You must be signed in to change notification settings

codewithmahad/BSSE-Sem2-OOP-Cpp

Repository files navigation

⚡ BSSE Semester 2: OOP Repository ⚡

Object-Oriented Programming in C++ (Robert Lafore)
Structured. Optimized. UBIT Standardized.

C++ OOP UBIT Semester 2


🧐 About This Repository

This is my personal codebase for the Object-Oriented Programming (CS-352) course.

It contains my rewriting of the examples and solution codes for the exercises from Robert Lafore’s "Object-Oriented Programming in C++", fully adapted to meet the specific requirements of the UBIT BSSE curriculum.


✨ Code Standards

Unlike standard student repositories, every class in this repository is built with a professional 5-Function Protocol to ensure data encapsulation and robustness:

Function Type Purpose
1. Constructor Initializes object state immediately upon creation.
2. Destructor Clean memory management and resource release.
3. Setter Safe data input and validation.
4. Getter Controlled data access (using cin/cout logic).
5. Show() Standardized display method for debugging and output.

🧩 Additional Features:

  • Complete Coverage: Includes solution code for In-Chapter Examples and End-of-Chapter Exercises.
  • Modular Architecture: Code is strictly separated into examples/ (theory) and exercises/ (labs) for every chapter.
  • Clean Formatting: Proper indentation and meaningful variable naming used throughout.

🎓 Course Details

Detail Information
Institute UBIT – University of Karachi
Department Computer Science (CS)
Degree BS Software Engineering (BSSE)
Course Code 352
Subject Object Oriented Concepts and Programming
Session Semester 2 (2025)

📂 Repository Structure

To keep things clean, the repository uses a consistent pattern for every chapter.

BSSE-Sem2-OOP-Cpp/
│
├── Chapter-XX-Topic/
│   ├── examples/   <-- Theory & In-textbook code explanations
│   └── exercises/  <-- End-of-chapter problem solutions
│
└── Object-Oriented-Programming-in-C++-4th-Edition.pdf

📊 Curriculum Progress

Chapter Topic Examples Exercises Status
06 Objects & Classes
07 Arrays & Strings
08 Operator Overloading
09 Inheritance
10 Pointers
11 Virtual Functions

📚 Book Reference


🛠️ How to Run

If you are a student using this for reference, here is how to use these files:

  1. Clone or Download this repository.
  2. Open the folder in your preferred IDE (VS Code, DevC++, or CLion).
  3. Navigate to the specific chapter (e.g., Chapter-06-Objects-and-Classes/exercises).
  4. Compile and run the .cpp file.

Note: All codes are written in standard C++ and are compatible with GCC/MinGW compilers.


💡 Note to Future Students

If you are a junior from UBIT or a fellow student reading this:

"Programming is not about typing, it's about thinking."

Use this repository to understand the logic and syntax, but always try to write the code yourself first. The "5-Function Protocol" used here is a great habit to build early in your career!


🛡️ License & Disclaimer

This repository is strictly for educational purposes. The solutions provided here are my own interpretations of the exercises. Students are encouraged to use this as a reference but should write their own code to ensure true learning.


Maintained By

👤 Shaikh Mahad

BS Software Engineering (BSSE) • UBIT, University of Karachi

🌟 If you found this repository helpful, please give it a star!


About

A comprehensive C++ OOP archive for BSSE Semester 2 at UBIT. Optimized solutions for Robert Lafore's textbook.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages