Question: Write a program read a user's input and store the information in a class object below: class Person public: Person0; Il need to define a

 Write a program read a user's input and store the information
in a class object below: class Person public: Person0; Il need to
define a default constructor /* need to define a contructor that will
Initialize person's name to "Noname" Person (string pName, int pYear),; string getName0
const; Il return person's name void setName(string pName); I/ set person's name

Write a program read a user's input and store the information in a class object below: class Person public: Person0; Il need to define a default constructor /* need to define a contructor that will Initialize person's name to "Noname" Person (string pName, int pYear),; string getName0 const; Il return person's name void setName(string pName); I/ set person's name to pName void setYear(int pYear); I/ set person's age to pAge int getYear) const; I/ return person's age private: string name; Il person's name int birthYear; I/ year born

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!