Add containers module with initial implementation and integrate into CMake build system.
This commit is contained in:
@@ -8,16 +8,23 @@ class ClassA : public IComparable {
|
||||
|
||||
public:
|
||||
// public
|
||||
ClassA(); // default constructor
|
||||
ClassA(const ClassA& other); // copy constructor
|
||||
~ClassA() override; // destructor
|
||||
|
||||
void Print();
|
||||
int CompareTo(IComparable* other) override;
|
||||
|
||||
const float& GetDecimal() const { return *_pDecimal; }
|
||||
void SetDecimal(float decimal) { *_pDecimal = decimal; }
|
||||
|
||||
protected:
|
||||
// protected
|
||||
|
||||
private:
|
||||
// private
|
||||
int _number = 0;
|
||||
float* _pDecimal = nullptr;
|
||||
};
|
||||
|
||||
|
||||
#endif //POINTER_CLASSA_H
|
||||
Reference in New Issue
Block a user