016-002-003
Abstract and Concrete Methods: Shape Class
Medium
Problem Description
Abstract and Concrete Methods: Shape class
In this problem, you will create a program that implements the describe method in a Circle class extending abstract class Shape, and displays the shape description to standard output.
Learning Objective
Learn the difference between abstract method implementation and concrete methods.
Problem
Implement the describe method in Circle class that extends abstract class Shape.
Input
Line 1: Radius (integer)
Output
This is a shape.
This is a circle with radius [radius].
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
Sign Up