Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OOPS in System.out.println

 
nikhil yekhe
Greenhorn
Posts: 9
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I was asked to prove OOP concept when we use syntax System.out.println(<display to consol>). How does it fits in OOP and explain how it follows OOP.

I was totally stumped on two things:
1. What do I have to show to prove whether given thing (code) follows OOP?
2. How to do it in above example?
[ March 13, 2008: Message edited by: nikhil yekhe ]
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To me, the most important property of OOP is using runtime polymorphism as a tool to manage code dependencies.

Does that give you an idea for 2.?
 
nikhil yekhe
Greenhorn
Posts: 9
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ilja Preuss:
To me, the most important property of OOP is using runtime polymorphism as a tool to manage code dependencies.

Does that give you an idea for 2.?


Can you please elaborate on that. I understood that somehow the polymorphism is used in it. But I am not getting proper idea how to explain . Also if I am not wrong then to prove whether the code follows OOP or not we need to show that it fulfills all 4 fundamentals of OOP. Correct me if I am wrong and please elaborate.

Thanks,
Nikhil

ps: Sorry for delay
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think that there is a generally agreed upon definition for "code following OOP".

Personally, I don't think it's a boolean property - code isn't either object oriented or not. There are all kinds of shades of object orientation.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic