Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q1 Profile - name : String contact : int Access # username : String # password: int Register readinput(): void readContact(Scanner input. Access aUser) :

image text in transcribed

Q1 Profile - name : String contact : int Access # username : String # password: int Register readinput(): void readContact(Scanner input. Access aUser) : vold success Message (Access newUser Profile | contacts) : void Login login Menu(Access registeredUser) : void checkLogin(Access aUser. Access userRecord): void Figure Ql(a): Class Diagram (a) Class Profile characterised personal details of emergency contact person. (1) Create class Profile with the given data fields, data type, and access modifiers as in Figure Q1(a). (1 marks) (ii) Code the accessor and mutator for the given data fields. (4 marks) (iii) Construct a parameterised constructor for class Profile which initialise instance variables name and contact using mutators in Q1(a)(ii). (2 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

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

Prepare the present value of all goals approach.

Answered: 1 week ago

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago