Task 2: abstract Class: TwoDimensionShape Create an abstract class called "TwoDimensionShape", which implement interface "Shape". See below the abstract class "TwoDimensionShape specifications: > Data Members (Attributes): All data members are privet. o uName: User name. o sName: Geometric Shape name. > Methods: o findArea(): abstract method, no implementation, it should return the area of 2D shape. o findPerimeter(): abstract method, no implementation, it should return the Perimeter of 2D shape.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 5RQ
icon
Related questions
Question
100%
Task 2: abstract Class: TwoDimensionShape
Create an abstract class called "TwoDimensionShape", which implements
interface "Shape". See below the abstract class "TwoDimensionShape"
specifications:
> Data Members (Attributes): All data members are privet.
o uName: User name.
o sName: Geometric Shape name.
> Methods:
o findArea(): abstract method, no implementation, it should return the area of 2D
shape.
o findPerimeter(): abstract method, no implementation, it should return the
Perimeter of 2D shape.
a proper coding:
• Standard naming convention (class name, attribute, and method).
Completed program compiles and runs.
• Attributes given along with their visibility and type
Methods given along with visibility, return type and parameters.
Transcribed Image Text:Task 2: abstract Class: TwoDimensionShape Create an abstract class called "TwoDimensionShape", which implements interface "Shape". See below the abstract class "TwoDimensionShape" specifications: > Data Members (Attributes): All data members are privet. o uName: User name. o sName: Geometric Shape name. > Methods: o findArea(): abstract method, no implementation, it should return the area of 2D shape. o findPerimeter(): abstract method, no implementation, it should return the Perimeter of 2D shape. a proper coding: • Standard naming convention (class name, attribute, and method). Completed program compiles and runs. • Attributes given along with their visibility and type Methods given along with visibility, return type and parameters.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage