+ 1

What will be output?

class p{ public String N1{ get {return "Jen";} set{} }} static void main(){ Pp=new p(); P.N1="bob"; console.write(P.N1); } plz explain this question. plz I am beginner

21st Jul 2018, 12:13 PM
Harsh Mamgai
Harsh Mamgai - avatar
3 Réponses
+ 2
write that in code playground to see the output PS:Please dont post this question thread:Hidded Feature Sololearn by Modi
22nd Jul 2018, 3:40 AM
Jingga Sona
Jingga Sona - avatar
+ 1
I want explanation also ,so i have posted I am. beginner so I am posting
22nd Jul 2018, 4:22 AM
Harsh Mamgai
Harsh Mamgai - avatar
0
plz answer someone
21st Jul 2018, 3:55 PM
Harsh Mamgai
Harsh Mamgai - avatar