Define user class and register
Class a User Define that has aUsername, email and passwordAnd the following methods.
Print Method: Print username and email in the output
IS_Gmail method: Check whether the user's email is Gmail and returns the result to bolean
Then write an application that users can enter by enteringUsername, email and passwordSign up. Create an object from the User Class for each registration and save it in the list as users. Finally, after completing all users, print the list of registered using the PRINT method and print the IS_Gmail result as shown below
All Users = 2 hooshang [email protected] isGmail=NO amirhossein [email protected] isGmail=YES