Question: Please help fill in the code to implement an array class for characters. /* Comments help to know what to do in each function. Needs

Please help fill in the code to implement an array class for characters. /* Comments help to know what to do in each function. Needs to be in C++

#include // for size_t definition

/**

* @class Array

* Basic implementation of a standard array class for chars.

*/

class Array{

public:

/// Default constructor.

Array (void);

/**

* Initializing constructor.

* @param[in] length Initial size

*/

Array (size_t length);

/**

* Initializing constructor.

* @param[in] length Initial size

* @param[in] fill Initial value for each element

*/

Array (size_t length, char fill);

/**

* Copy constructor

* @param[in] arr The source array.

*/

Array (const Array & arr);

/// Destructor.

~Array (void);

/**

* Assignment operation

* @param[in] rhs Right-hand side of equal sign

* @return Reference to self

*/

const Array & operator = (const Array & rhs);

{

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!