Question: Write a c++ program using classes and objects. Implement Assignment 7 using Classes and Objects Your Class structure will be as follows 1. Class name
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 wil 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_validO: this function checks whether the given number is valid or not. Return True if number is valid or else return False void check (int number): this function prints open the chamber If condition holds good. It prints do not open the chamber if condition does not hold good
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
