A simple console-based Java application that demonstrates Object-Oriented Programming (OOP) concepts like Classes, Objects, Inheritance, Polymorphism, Encapsulation, and Abstraction.
It allows users to add, view, and delete student records.
- β Add new students (Undergraduate or Graduate)
- π View all student details
- β Delete student by Roll Number
- π§ Uses OOP concepts (Class, Object, Inheritance, Polymorphism, etc.)
- π¦ Console-based and beginner-friendly project
| Concept | Description |
|---|---|
| Class & Object | Student, UndergraduateStudent, GraduateStudent |
| Constructor & this keyword | Initializes student data |
| Encapsulation | Private fields with Getters/Setters |
| Inheritance | UG & PG classes extend Student |
| Polymorphism | Overridden displayInfo() method |
| Abstraction | Abstract Student class |
| Access Modifiers | Public & Private fields/methods |
| Static | (Can be used to count total students) |
git clone https://github.com/Shilpask123/Student-Management-System.gitOpen the folder in IntelliJ IDEA or Eclipse.
Run the Main.java file. Follow the console instructions.
===== Student Management System =====
1. Add Student
2. View All Students
3. Delete Student
4. Exit
Enter your choice: 1
Enter Student Type (UG/PG): UG
Enter Name: Shilpa KAmable
Enter Roll No: 41
Enter Marks: 89
Student added successfully!
1. Add Student
2. View All Students
3. Delete Student
4. Exit
Enter your choice: 1
Enter Student Type (UG/PG): PG
Enter Name: Ajay S K
Enter Roll No: 56
Enter Marks: 98
Student added successfully!
1. Add Student
2. View All Students
3. Delete Student
4. Exit
Enter your choice: 2
===== Student List =====
Name: Shilpa KAmable
Roll No: 41
Marks: 89
Grade: A
Type: Undergraduate
------------------------------------
Name: Ajay S K
Roll No: 56
Marks: 98
Grade: A+
Type: Graduate
------------------------------------
Total Students: 2
1. Add Student
2. View All Students
3. Delete Student
4. Exit
Enter your choice: 3
Enter Roll No of student to delete: 41
Student removed successfully!
1. Add Student
2. View All Students
3. Delete Student
4. Exit
Enter your choice: 2
===== Student List =====
Name: Ajay S K
Roll No: 56
Marks: 98
Grade: A+
Type: Graduate
------------------------------------
Total Students: 1
1. Add Student
2. View All Students
3. Delete Student
4. Exit
Enter your choice: 1
Enter Student Type (UG/PG): Roopa Kambale
Enter Name: Roopa Kambale
Enter Roll No: 43
Enter Marks: 86
Invalid student type!
1. Add Student
2. View All Students
3. Delete Student
4. Exit
Enter your choice: 2
===== Student List =====
Name: Ajay S K
Roll No: 56
Marks: 98
Grade: A+
Type: Graduate
------------------------------------
Total Students: 1
1. Add Student
2. View All Students
3. Delete Student
4. Exit
Enter your choice: 1
Enter Student Type (UG/PG): PG
Enter Name: Roopa Kambale
Enter Roll No: 43
Enter Marks: 87
Student added successfully!
1. Add Student
2. View All Students
3. Delete Student
4. Exit
Enter your choice: 2
===== Student List =====
Name: Ajay S K
Roll No: 56
Marks: 98
Grade: A+
Type: Graduate
------------------------------------
Name: Roopa Kambale
Roll No: 43
Marks: 87
Grade: A
Type: Graduate
------------------------------------
Total Students: 2
1. Add Student
2. View All Students
3. Delete Student
4. Exit
Enter your choice: 4
Exiting... Thank you!StudentManagementSystem/
βββ Main.java
βββ Student.java
βββ UndergraduateStudent.java
βββ GraduateStudent.java
βββ StudentManagement.java-
Through this project, I learned:
-
How to design and structure a Java application using OOP principles
-
How inheritance and polymorphism make code reusable and flexible
-
How abstraction helps hide details and show only essential information