Back

Code Challenge 5.3 - Stock Class


Objective

Your task is to design and implement a Stock class and write a program that tests the class. This challenge focuses on object-oriented programming concepts such as constructors, methods, and fields, as well as applying arithmetic operations.

Skills to Practice

Challenge Tasks

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

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