Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started