• Post Reply Bookmark Topic Watch Topic
  • New Topic

method declaration  RSS feed

 
teja kol
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi got stuck with this can someone help me with this please when  declaring a method  with different types of parameters what should be the return type?
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tejak kolluri wrote:what should be the return type?


The return type of a method should be what you need for your application. What do you want the method to return? It's part of your application design. You design what parameter to pass, and you design what to return.

Or are you asking something else?

Henry
 
teja kol
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for answering that is solved now
 
Campbell Ritchie
Marshal
Posts: 56553
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
. . . and welcome to the Ranch
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!