Declare a class authenticatedUser that has the properties (data members) username and password, and a Boolean flag (that
Posted: Fri May 20, 2022 2:34 pm
Declare a class authenticatedUser that has the properties (data members) username and password, and a Boolean flag (that you can name ValldUser). The class should provide seders and Getters for username and password (using property. The class should also provide the method authenticate that can be called after setting viles for the data members username and password. The method authenticate compares the values of username and password with the valueer and "128" respectively and set valid user to true they are id falsex they are not equal. The class should provide a getter using property for the data member validUser. Give the appropriate specifions for the class members Assume in your program that you have the following form Log Update to stay in We wong that we end, when the ones that when Cena object othenticated username ty UN Det pasword w butwD cauthenticated