Mark classes as final where applicable (#189)

This commit is contained in:
Michał Janiszewski 2019-03-08 04:46:53 +01:00 committed by Daniel Belcher
parent 0166daf5c7
commit e2c7db644d

View File

@ -6,7 +6,7 @@
#include "Header Files/CalcEngine.h"
#include "Header Files/Rational.h"
class CParentheses : public IParenthesisCommand
class CParentheses final : public IParenthesisCommand
{
public:
CParentheses(_In_ int command);
@ -18,7 +18,7 @@ private:
int m_command;
};
class CUnaryCommand : public IUnaryCommand
class CUnaryCommand final : public IUnaryCommand
{
public:
CUnaryCommand(int command);
@ -33,7 +33,7 @@ private:
std::shared_ptr<CalculatorVector<int>> m_command;
};
class CBinaryCommand : public IBinaryCommand
class CBinaryCommand final : public IBinaryCommand
{
public:
CBinaryCommand(int command);
@ -46,7 +46,7 @@ private:
int m_command;
};
class COpndCommand : public IOpndCommand
class COpndCommand final : public IOpndCommand
{
public:
COpndCommand(