using System;
public class Copil
{
private string nume;
private int varsta;
public Copil(string nume, int varsta)
this.nume = nume;
this.varsta = varsta;
}
public Copil ModificVarsta(int varsta)
return this;
public void Afiseaza()
Console.WriteLine(nume + " " + varsta);
public class Test_this
public static void Main(string[] args)
Copil c = new Copil("Alin",17);
c .Afiseaza ();
c.ModificVarsta(18);
c.Afiseaza();