My String firstname inside method value in class is not display in browser. Thanks you. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

My String firstname inside method value in class is not display in browser. Thanks you.

Display string firstname method value () in class. https://code.sololearn.com/WDO4gyi3rZAO/?ref=app

6th Jul 2021, 12:12 PM
Malick Diagne
Malick Diagne - avatar
1 Answer
+ 2
Class Y has property named value and a method named value, in other words you have a naming collision. You need to rename one or the other.
6th Jul 2021, 2:34 PM
ODLNT
ODLNT - avatar