Back

Code Challenge 5.1 - Rectangle Class


Objective

Your task is to design and implement a Rectangle class and write a program that tests the class. This challenge will focus on encapsulating object-oriented programming concepts such as constructors, methods, and fields.

Skills to Practice

Challenge Tasks

  1. Create a console project named Challenge 5-1.
  2. Draw the Class Diagram:
  3. Class Implementation:
  4. Test Program:

* Use the naming convention matches your programming language/preference.