+ 2

Error

There is no getAge() method in package, it is not correctly to ask - what will be output.

21st Mar 2018, 8:11 AM
serhii
6 ответов
+ 6
Please specify what language you are asking about. Is it Java?
21st Mar 2018, 5:17 PM
David Akhihiero
David Akhihiero - avatar
+ 5
Your question is not easy to understand unless you provide more context. Please post the code you are referring to
21st Mar 2018, 8:41 AM
David Akhihiero
David Akhihiero - avatar
+ 5
@serhii the question is correct. The question contains a part of the code and not the full code. The full code would contain a Person Class that has getAge() and setAge() methods. The question only showed the content of the main(String[] args) method in the Main Class
21st Mar 2018, 6:46 PM
David Akhihiero
David Akhihiero - avatar
+ 1
I can't find it) it was one of the questions after theme get/set methods
21st Mar 2018, 2:44 PM
serhii
+ 1
specify which programming language and also mention your question with some description
21st Mar 2018, 5:34 PM
R🍁🇮🇳
R🍁🇮🇳 - avatar
+ 1
Java. Lesson class& objects 9/14 in second question
21st Mar 2018, 6:08 PM
serhii