Question: java Question 1 a) State the answers based on the following statements: . i. My instance variable values can be different from my buddy's values.
java
Question 1
a) State the answers based on the following statements:


.
i. My instance variable values can be different from my buddy's values. ii. I behave like a template. ii. I have behaviors. I like to do stuff. iv. I can have many methods and variables. v. I represent 'state'. vi. I live on the heap. I am used to create object instances. vii. My state can change. I declare methods. I can change at runtime. viii. I prefer my instance variables private. ix. A method can have only one of these. x. I am a special method in Java class. My purpose is to initialize an instance of the class. Note: Answers can be any appropriate Object-Oriented concept or terminologies. b) A private dental practice wishes to computerise its patient records system. A patient must register with the practice and the system needs to store their name, address and mobile telephone number. Each patient is given a unique seven-digit patient number. The system will keep a count of how many patients the practice currently has. Patients can book an appointment with a particular dentist; the system needs to store the date of the appointment and if the patient attended. A text message will be automatically sent out two working days before the appointment. After the appointment, the dentist updates the system with the cost of the treatment undertaken. i. Identify any TWO (2) appropriate classes based on above scenario. (2 marks) ii. Identify any TWO (2) instance variables for each of classes that been identified in a) (4 marks) iii. Identify any TWO (2) instance methods for each of classes that been identified in a) (4 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
