Accessing the members of a class

The members of a class like fields, methods are accessed using dot operator against the reference of the object.

For Example,

MyClass myObj = new MyClass();
myObj.name = "Kisan";
myObj.Sum(2, 4);

For example, there is a class String in the System namespace of .Net Framework class library. This class contains an array of characters(data) and provide different method that can be applied to its data like ToLowerCase(), Substring(), Trim() and properties like Length.