Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

OOPS in System.out.println

 
Greenhorn
Posts: 9
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic