Skip to content

Portrayal of the OOP principles: encapsulation, inheritance, polymorphism, and abstraction, through the creation of a 2D shape generator -233

Notifications You must be signed in to change notification settings

sm20/Classes-And-Objects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FEATURES

This program allows you to create abstractions of 2D shapes by providing coordinates and dimensions of those respective shapes. The program allows you to keep track of the objects you have created, and view details about those objects at any time. Objects can also be destroyed. The following functionality is supported:

[1]Create a Circle or Rectangle Object

[2]Set the Origin Point for a Created Object

[3]Set the Dimensions for any object

[4]Display the Current State of the Object

[5]Move an Object a Specified Distance

[6]Compute and Display the Distance Between Any Two Objects

[7]Destroy any Object

[8]List the Current State for all Objects in the Array

[9]Quit the Program

INSTRUCTIONS (windows terminal)

  1. In a terminal, compile as follows:
    javac *.java
  2. Run the program:
    java Test

The program can also be imported in an IDE such as Eclipse.

About

Portrayal of the OOP principles: encapsulation, inheritance, polymorphism, and abstraction, through the creation of a 2D shape generator -233

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages