Java Programming Tutorial - 16 DOUBT
Post a Reply
|Oldest Newest Rating|
Pere Garau Burguera
· December 28, 2014
He does call the getName method. If you look carefully, he uses it within the saying method. The saying method just outputs that text and replaces the %s with whatever you pass the printf method as a second parameter. He puts getName(), and this method will return whatever the String girlName equals.
Then, you will see that he uses that saying method within the main method, so the saying method will get called, and therefore, the getName method will also get called. So he is using all the methods he created, but for the getName, he doesn't call it directly, but he does call it within the saying method.
· January 8, 2015
Java / Android Development
Very popular language used to create desktop applications, website applets, and Android apps.
|Bucky Roberts Administrator|