The Startup
Published in

The Startup

What Is Inheritance and Composition in Java? Check the Differences

The Two most widely used object-oriented programming features — Inheritance, and Composition.

Photo by Sean Lim on Unsplash

Through this article, I’ll be covering the concepts of inheritance and composition in java programming. After reading this article you will be having sound knowledge of these two java features.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store