• Post Reply Bookmark Topic Watch Topic
  • New Topic

What's wrong with this code?  RSS feed

 
thomas lim
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's wrong with this code?

 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Method overloading is distinguished by the signature only, although the return type is used for other purposes. So, the compiler will not allow your code to compile, as the two methods are not different overloaded methods.

Henry
 
praveen kumaar
Ranch Hand
Posts: 461
22
Android Chrome Eclipse IDE Google App Engine Java Notepad Oracle Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And,Welcome to the CodeRanch!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!