• Post Reply Bookmark Topic Watch Topic
  • New Topic

what's missing? please advise  RSS feed

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
was practising my scja codes and found out that this line of code might be incomplete. I need an explanation.is there only one way to achieve a goal via lines of code or you can also try other ways to achieve the same goal with other lines of java code.also i couldn't see the shark,skate or striped bass objects. please advise.

 
Ola Olusegun
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it seems there's some form of inheritance(polymorphism) going on here. just saying. am i right? please can someone enlighten me further.
 
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This code is certainly incomplete in that it won't compile, for which there are many reasons. But I'm not sure what you're asking - is the question what changes need to be made to this code so that it will compile, and produce the output you mentioned? If so, start by telling us what ideas you have had. If you're asking something else, please elaborate on that in more detail.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!