0

hi, how I can use method and what method,please write some example to me.

thanks to answer me.

8th Aug 2016, 11:51 AM
johny
3 Answers
+ 2
For using methods put a dot in front of the objects name and then write the method's name. Example : /*using pow() method of an static built in class called Math */ int s=Math.pow(4,2) /*using another built in method available for every variable called toString() */ Console.WriteLine(s.toString());
9th Aug 2016, 1:54 AM
Alireza M
Alireza M - avatar
0
what bk
8th Aug 2016, 4:34 PM
johny
- 3
bk
8th Aug 2016, 1:51 PM
Ali Akbor
Ali Akbor - avatar