• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not compiling

 
shabbir ali
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI can anybody tell me y this code is not compiling while it is given in cathy seirra and bates book "scjp study guide"...(page no 25)



Thank you......


[HENRY: Added code tags, and formatted code]
[ September 02, 2006: Message edited by: Henry Wong ]
 
Henry Wong
author
Marshal
Pie
Posts: 21446
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code looks fine to me. Could you provide us with the error messages that you are getting when you compile it.

Of course, since there isn't a main() method, you can't actually run the code... but it should compile.

Henry
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What compiler errors are you getting? Compiles and runs (when an instance of Moo is created and the method useAZoo is called). Like Henry says, there is nothing obviously wrong.
[ September 02, 2006: Message edited by: Barry Gaunt ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic