- 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 Respuesta
+ 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