Skip to content

Latest commit

 

History

History
75 lines (52 loc) · 1.9 KB

File metadata and controls

75 lines (52 loc) · 1.9 KB

Student Information System (C++ OOP Project)

This project is a simple Student Information System created using Object-Oriented Programming (OOP) concepts in C++. It was developed as part of a university assignment to demonstrate the use of classes, constructors, destructors, encapsulation, and abstraction.


Project Structure

Student-Information-System │ ├── Student.h → Header file (class declaration) ├── Student.cpp → Implementation file (function definitions) ├── main.cpp → Main program (object creation and execution) ├── UML_Diagram.jpg → UML diagram of the Student class (optional) └── README.md → Project description file


Concepts Used

  • Class and Objects
  • Constructors (Default, Parameterized, and Overloaded)
  • Destructor
  • Encapsulation (Getters and Setters)
  • Abstraction (Display and Grade Calculation methods)

How to Run the Project

  1. Open any C++ compiler such as Dev-C++, Code::Blocks, or Visual Studio Code.
  2. Make sure all three files (Student.h, Student.cpp, and main.cpp) are in the same folder.
  3. Compile and run the main.cpp file.
  4. The program will show constructor and destructor calls, along with student information and grade results.

Example Output

Default constructor called! Name: Unknown Age: 0 Roll No: 0 GPA: 0 Grade: F

Parameterised constructor called for: Miksi. Name: Miksi Age: 20 Roll No: 101 GPA: 3.6 Grade: A


Developer Information

Name: Muhammad Ilyas (Miksi) Roll No: L1F24BSAI0078 Department: BS Artificial Intelligence University: University of Central Punjab, Lahore


GitHub Repository

GitHub Link: [https://github.com/miksi0078]


Conclusion

This project demonstrates the implementation of fundamental OOP principles in C++. It explains how constructors, destructors, and encapsulation can be used to manage and display student data effectively.