• Post Reply Bookmark Topic Watch Topic
  • New Topic

java with oops concept  RSS feed

 
madhu chakkaravarthy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it was an interview question

need to print helloworld by using all oops concept... how to do this
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe they meant to explain a hello world program in OO concepts? The shortest way you can write this ...

uses a pretty fair number of objects. I can't see any reason to make it longer to make it "more" OO.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!