a)Constructor nima?
Konstruktor – bu sinfdan ob'ekt yaratilganda
avtomatik ravishda chaqiriladigan maxsus usuldir.
b)Quyidagi kodni to'ldiring:
class Animalpublic string Name;
public Animal(________)
Name = name;
Animal dog = new Animal("Dog");
Console. WriteLine (dog.Name);
Top comments (0)