Search⌘ K
AI Features

Challenge 4: Implement Derived Class to Calculate Min/Max/Mean

Explore how to implement a derived class in C++ that inherits from a dynamic array class to calculate minimum, maximum, and mean values. This lesson helps you practice inheritance and build reusable functions to analyze dynamic data collections.

Problem Statement

In this challenge, you are given a class called DynamicArray which implements a dynamic array of integers that can grow in size.

This class has the following functions:

  • void append(int value):
...