Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Testclass{
- bool status;
- public:
- void setStatus(bool);
- void checkStatus();
- };
- void Testclass::setStatus(bool s){
- status = s;
- }
- void Testclass::checkStatus(){
- if(status){cout<<"Machine is on";}
- else{cout<<"Machine is off";}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement