Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I. PROBLEM SOLVING (50 points) Perform what is being asked. Write your code on a clean sheet of paper. 1. Create two (2) classes named
I. PROBLEM SOLVING (50 points) Perform what is being asked. Write your code on a clean sheet of paper. 1. Create two (2) classes named User and Administrator. The Administrator class should inherit from the User class and the two (2) classes should be members of the namespace named UserNamespace. Refer to the UML class diagram below for the names of the required instance variables, methods, modifiers, and their types. Use the Equals() method to compare strings. Legend User (+) - public (-) - private user_id: string (#) - protected # user_password: string italicized - abstract members + User(string id, string pass) + verifyLogin(string id, string pass): bool + updatePassword(string newPassword): void Administrator - admin_name: string + Administrator(string name, string id, string pass) + upatePassword(string newPassword): void + updateAdminName(string name): void
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