Mark classes as final
where applicable (#189)
This commit is contained in:
parent
0166daf5c7
commit
e2c7db644d
@ -6,7 +6,7 @@
|
|||||||
#include "Header Files/CalcEngine.h"
|
#include "Header Files/CalcEngine.h"
|
||||||
#include "Header Files/Rational.h"
|
#include "Header Files/Rational.h"
|
||||||
|
|
||||||
class CParentheses : public IParenthesisCommand
|
class CParentheses final : public IParenthesisCommand
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CParentheses(_In_ int command);
|
CParentheses(_In_ int command);
|
||||||
@ -18,7 +18,7 @@ private:
|
|||||||
int m_command;
|
int m_command;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CUnaryCommand : public IUnaryCommand
|
class CUnaryCommand final : public IUnaryCommand
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CUnaryCommand(int command);
|
CUnaryCommand(int command);
|
||||||
@ -33,7 +33,7 @@ private:
|
|||||||
std::shared_ptr<CalculatorVector<int>> m_command;
|
std::shared_ptr<CalculatorVector<int>> m_command;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CBinaryCommand : public IBinaryCommand
|
class CBinaryCommand final : public IBinaryCommand
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CBinaryCommand(int command);
|
CBinaryCommand(int command);
|
||||||
@ -46,7 +46,7 @@ private:
|
|||||||
int m_command;
|
int m_command;
|
||||||
};
|
};
|
||||||
|
|
||||||
class COpndCommand : public IOpndCommand
|
class COpndCommand final : public IOpndCommand
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
COpndCommand(
|
COpndCommand(
|
||||||
|
Loading…
Reference in New Issue
Block a user