Notice, in the preceding example, that the private fields (name and age) can only be accessed through the public methods of the Child class. For example, you cannot print the child's name, from the Main method, using a statement like this:
Console.Write(child1.name); // Error
Accessing private members of Child from Main would only be possible if Main were a member of the class.
Types declared inside a class without an Access Modifier default to private, so the data members in this example would still be private if the keyword were removed.
Finally, notice that for the object created using the default constructor (child3), the age field was initialized to zero by default.