Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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. iii. 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. (10 marks) 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions

Question

Briefly explain why corporations issue convertible securities.

Answered: 1 week ago

Question

Demonstrate three aspects of assessing group performance?

Answered: 1 week ago

Question

3. Is IBMs program really a mentoring program? Why or why not?

Answered: 1 week ago