Skip to content

Conversation

Ashwil-Colaco
Copy link
Contributor

Closes #19

Program Details

Type of Program: OOP Concept
Concept Implemented: Polymorphism & Inheritance
Known Limitations: Works only for positive integers

Check List

  • The file is placed in the correct subfolder.
  • The file and main class are named using PascalCase.
  • The code includes the required Javadocs-style header metadata.
  • The code follows 4-space indentation and K&R brace style.
  • A working main method is included to demonstrate the program.

Copy link
Owner

@IamBisrutPyne IamBisrutPyne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Ashwil-Colaco 👋

This is an excellent addition to the OOP folder.
Note: It is generally safer to wrap Scanner in try-with-resources block.

Thank you for your contribution and Happy Hacking 🌟

@IamBisrutPyne IamBisrutPyne merged commit 64e20ec into IamBisrutPyne:main Oct 7, 2025
@Ashwil-Colaco
Copy link
Contributor Author

Thank you @IamBisrutPyne

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Demonstrate Shape Hierarchy using Inheritance

2 participants