00:01
In this question, we are going to write a code in java.
00:05
So, to solve this problem, we will first see at what steps we are going to follow to solve this question.
00:14
So, first we will have to introduce a patient class, that is, we have to define a patient class.
00:34
Then, after that, we have to define the procedure class.
00:37
Now, in this patient class, we will have declared the private member variables.
00:50
And in procedure class, we will define the procedure.
00:54
Then, we will write the main program and then we will execute it and then we will see the output for it.
01:02
So, now let us see in a basic java compiler on how we are going to write this program.
01:09
So, for that, i am using a basic java compiler.
01:12
So, here, first we have to begin by importing the scanner class from the java library for the input functions.
01:23
So, for that, we will be using a basic java compiler like this.
01:29
Now, next step is we will use a patient class.
01:32
We will define a patient class which will have certain variables.
01:36
So, let us see what those variables are.
01:39
So, as you can see here, we have defined the patient class with the private number variables that are first name, middle name, last name, phone number.
01:52
So, it has a constructor that accepts arguments for each member variable and initializes them.
02:00
So, the class also provides the accessor methods, that is, get methods and mutator methods.
02:06
So, now let us see the accessor methods and mutator methods that we will be writing.
02:13
So, as you can see here, these are the accessor methods which will get a first name, middle name, phone number and everything.
02:21
And this is mutator methods which will get that...