Win a copy of Serverless Applications with Node.js this week in the NodeJS 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

Java Polymorphism  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey folks, I`m new in studying Java and I need to explain why in the following code was used polymorphism... if someone can help me with few ideas. I  appreciate your help. Thank you

It won't let me post the entire code because is too long ...
Screenshot-from-2019-04-12-20-48-05.png
[Thumbnail for Screenshot-from-2019-04-12-20-48-05.png]
Screenshot-from-2019-04-12-20-48-10.png
[Thumbnail for Screenshot-from-2019-04-12-20-48-10.png]
 
Sheriff
Posts: 13387
221
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

1. Please don't post images. Use code tags instead.

2. Please clarify your question. I don't see anything in those images that indicates any use of polymorphism since everything is declared as static.
 
Marshal
Posts: 63837
209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome again

As Junilu has suggested, polyorphism doesn't apply to static methods, but only to instance methods.
 
Florentin Sto
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah my bad i will delete the post ... what i must do is to explain what concepts was used and why (encapsulation,polymorphism etc.)  and i supposed is polymorphism...
 
Sheriff
Posts: 5813
150
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't have to delete your post (and you can't anyway) but you can post again here with some shorter, clearer code.
 
Don't listen to Steve. Just read this tiny ad:
global solutions you can do at home or in your backyard
https://www.kickstarter.com/projects/paulwheaton/better-world-boo
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!