https://code.sololearn.com/ca6A1729521a The yob and yod is not printed..I thought of removing the if condition and then what if I don't want to give yod as input and it will only print yob or sometimes I want to print them both and that's why didn't remove.
5/3/2021 7:07:26 PM
Ramisa Fariha5 Answers
New AnswerIn lines 42 and 43 you confused the parameters with the member variables. That means you just have to switch yob and Yob as well as yod and Yod
the question is 10.5 Implement a Person class. Each object of this class will represent a human being. Data members should include the person’s name, year of birth, and year of death. Include a default constructor, a destructor, access functions, and a print function.
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message