The Wayback Machine - https://web.archive.org/web/20220519030054/https://github.com/topics/extends
Skip to content
#

extends

Here are 35 public repositories matching this topic...

Define an abstract class named Shape that contains an empty method named numberOfSides().Define three classes named Trapezoid, Triangle and Hexagon such that each one of the classes extends the class. Shape. Each one of the classes contains only the method numberOfSides() that displays the number of given geometrical figure. Demonstrate how the trapezoid, triangle and hexagon classes can be instantiated and their methods can be tested.

  • Updated Apr 16, 2021

Improve this page

Add a description, image, and links to the extends topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the extends topic, visit your repo's landing page and select "manage topics."

Learn more