Fill in the blanks to create a valid constructor. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Fill in the blanks to create a valid constructor.

class Person { private int age; public Person (int myage) { age = myage; } }

31st Aug 2016, 7:48 AM
Rahul Raval
Rahul Raval - avatar
2 Réponses
0
new Person(25);
16th Sep 2016, 1:47 PM
Sarath chalapaka
Sarath chalapaka - avatar
0
7th Mar 2022, 3:38 PM
VARSHA M