Assignment 5 Updated
Assignment 5 Updated
Employee
- empId: int
- empName:String
- empDesig:String
- empDept:String
+ Employee ()
+ getters ()
+ setters ()
+ Employee(int, String, String, String )
• While setting value for empDesig, the designation must have any of
the following values:
At times, the customer registration process changes, here are the guidelines:
1. Admin may register customer by filling only ID, name
and address details 2. Admin may register customer by
filling only ID and name
3. Admin may register customer by filling all the details.
Note: When other data members which are not initialized through
constructors should have appropriate default values.
Exercise: Design and implement applications using basic OOP paradigms.
Exercise: Design and implement applications using basic OOP paradigms.
Objective:
Given a class diagram for a problem, use the method and constructor
overloading concepts to solve the problem and test using a set of values in an
IDE.
Problem Description: The admin of a pre-university college wants to calculate
the marks of students in a particular course based on some criteria. Write a
Java program to implement the below given class diagram.
Student
-studentId: int
-studentName: String
-marks: float
-secondChance: boolean
+Student(int,String,String)
+getStudentId(): int
+getStudentName():
String
+getMarks(): float
+getSecondChance():
Boolean
+identifyMarks(float):
void +identifyMarks(float,
float):
void
Student Class: