logo

The object oriented programming with java

   

Added on  2022-09-18

5 Pages1130 Words24 Views
Running head: OBJECT ORIENTED PROGRAMMING WITH JAVA
Object Oriented Programming with Java
Name of the Student
Name of the University
Authors note

OBJECT ORIENTED PROGRAMMING WITH JAVA
1
Reflection
In this programming project, the main objective was to create a console based
program that will be able to register an appointment, cancel a registered appointment. In
addition to that, the program will be able to display the doctor’s schedule as well as patient’s
appointment details.
In order to complete the program, four classes were designed so that the
functionalities can be implemented with the OOPS concept. These classes are Booking,
Doctor, Patient and Finally the MediacareBooking class.
The program presents a menu to the user as the developed program was menu driven.
The choice entered by the user is parsed using the scanner class.
The redirection to the functions according to the user choices are accomplished using
the switch case statement. Through the use of switch statement it is possible to build a multi-
way branch statement to call different functions according to the different user choices. In
this way, this statement provides easy way in order to dispatch execution in different code
blocks depending on the value of the expression entered by the user of the application. The
choice of the user can be char, byte and int data types.
While using the switch case, I found some important points that needs to be
considered;
Duplicate case values in the switch statement is not allowed. In order to send the
execution to a specific code block the duplicate values are not allowed.
Used value or the data type for case needs to be same data type that is used in
switch statement. Along with that, the value for case always should be constant and not a

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
B8IT117 - Object Oriented Programming | Project
|3
|563
|22

Object Oriented Programming Using Java
|34
|1938
|266

JAVA Program Using Array of Objects
|28
|2144
|15

System Analysis and Design Assignment JHC
|12
|2024
|77

Assignment On Object Oriented Programming With Java
|4
|570
|40

Desklib - Online Library for Study Material with Solved Assignments, Essays, Dissertations
|4
|985
|401