Question: Assignment 13(Part-1) Implement Assignment 7 using Classes and Objects. Your Class structure will be as follows 1. Class name will be Egypt 2. The member


Assignment 13(Part-1) Implement Assignment 7 using Classes and Objects. Your Class structure will be as follows 1. Class name will be Egypt 2. The member variables in your class will be Int number which will hold the number to be checked All the member variables are having public access specifier 3. The member function present in your class will be: Void set elements(int element): this function sets the given element to the member variable number Void get_element0: this function gets the member variable number. Print the number here. bool is_valid): this function checks whether the given number is valid or not. Return True if number is valid or else return False Assignment 13(Part-1) Implement Assignment 7 using Classes and Objects. Your Class structure will be as follows 1. Class name will be Egypt 2. The member variables in your class will be Int number which will hold the number to be checked All the member variables are having public access specifier 3. The member function present in your class will be: Void set elements(int element): this function sets the given element to the member variable number Void get_element0: this function gets the member variable number. Print the number here. bool is_valid): this function checks whether the given number is valid or not. Return True if number is valid or else return False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
