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.
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
- Class and Objects
- Constructors (Default, Parameterized, and Overloaded)
- Destructor
- Encapsulation (Getters and Setters)
- Abstraction (Display and Grade Calculation methods)
- Open any C++ compiler such as Dev-C++, Code::Blocks, or Visual Studio Code.
- Make sure all three files (Student.h, Student.cpp, and main.cpp) are in the same folder.
- Compile and run the main.cpp file.
- The program will show constructor and destructor calls, along with student information and grade results.
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
Name: Muhammad Ilyas (Miksi) Roll No: L1F24BSAI0078 Department: BS Artificial Intelligence University: University of Central Punjab, Lahore
GitHub Link: [https://github.com/miksi0078]
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.