static void Main(string[] args) { myclass objmyclass = new myclass(); //here we create a object of class whose name is objmyclass objmyclass.myprocedure(); // i call a method procedure objmyclass.myfunction(); // i call a method function string value = objmyclass.myfunction(); // save a value of object of mthd function in value Console.WriteLine(value); //print value }