0
Class Person OOP
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.
4 Réponses
+ 2
In 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
0
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.
0
Click the link again @Mirielle..I have corrected the link
0
@Hape thank you so much..It worked