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

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
Get step-by-step solutions from verified subject matter experts
