0
hi, how I can use method and what method,please write some example to me.
thanks to answer me.
3 Réponses
+ 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());
0
what bk
- 3
bk