• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Whats the Difference

 
Greenhorn
Posts: 4
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello every body,

I got some greedy questions if you don't mind,

what's the different between inheritance and composition and Abstract and Polymorphism?

and if could you please explain it to me and what the above really do.

THANKS
 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, and welcome to the Ranch!

For broad questions like those, you'll do better if you ShowSomeEffort(⇐click) and SearchFirst(⇐click).
 
khaled nabulsi
Greenhorn
Posts: 4
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

I do have a book by dietal java how to program but it doesn't show whats the difference between them,

and I saw some oracle tutorials but I couldn't understand yet.
I would appreciate if you told me the difference by quick chat am not asking hard work,

THANKS
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So you looked at at least 3 different sources for the definition and examples of inheritance, and at least 3 different sources for the definition and examples of composition, and you can't see any differences between them? And you googled "difference between inheritance and composition" and didn't find anything useful?

Sorry, I don't buy it.

Post one of the definitions and examples of inheritance that you found, as well as a definition and example of composition. Then explain why you think they're the same.
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

khaled nabulsi wrote:I would appreciate if you told me the difference by quick chat am not asking hard work,



I am.

People at this site are happy to help others, but we expect you to do the hard work. You have to spend time and effort researching, studying, thinking, and when you still can't understand what you've found, we expect you to spend time and effort to tell us what you think and what exactly you're struggling with.
 
yeah, but ... what would PIE do? Especially concerning this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic