0

Fill in the blanks to print the age variable of the Person class using the this keyword.

c# code Fill in the blanks to print the age variable of the Person class using the this keyword. class Person { private int age; public void Print() { Console.Write(his.age); } }

8th Feb 2018, 2:32 PM
Mesut Alcicek
Mesut Alcicek - avatar
2 Réponses
0
his.age is missing a t must be this.age
8th Feb 2018, 2:46 PM
sneeze
sneeze - avatar
0
class Person { private int age; public void Print() { Console.Write(this.age); } }
9th Jan 2020, 12:09 PM
Đào Ngọc Tuấn Anh
Đào Ngọc Tuấn Anh - avatar