Write a C++ class name is Person i) Define three variable as public Person_ID as Double, Person_DOB_Year as Integer, and height in meters as Double; ii) Create a suitable variable to find the person age and the year 2020 assign it on the Constructor iii) Define tow setter methods and two getter methods. iv) Add another method which will return the height in centimeters. v) Create a method to find for person age as calculate_ Age() Write a main method and view the Age and height for person
Comments
Leave a comment