Object of Simple Person
Object of Simple Person: An object of a simple person with some attributes and behaviors are defined here in this post. You can also Download the code of this program easily at the end of the article. Object of Simple Person(Code) #include<iostream> #include<string> using namespace std; class person{ //attributes string name; float age; string reg; //behaviour public: void inputdetail(){ cin>>name>>age>>reg; } void displaydetail(){ cout<<name<<" "<<age<<" "<<reg<<" "<<endl; } }; Go to below to get full code _________________________________________________________________________________ _________________________________________________________________________________ Download: To download this program click on the given link below: Download