• Post Reply Bookmark Topic Watch Topic
  • New Topic

duplicate class  RSS feed

 
MaheshS Kumbhar
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The above code sample fails compiling saying "duplicate class testOverload2"

I dont know whats wrong in this code
 
Patrick Bucher
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have two classes named "testOverload2" in the same file. You must rename one class of them or distribute them over different packages.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!