Skip to content

Commit

Permalink
Mark classes as final where applicable (microsoft#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
janisozaur authored and Daniel Belcher committed Mar 8, 2019
1 parent 0166daf commit e2c7db6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CalcManager/ExpressionCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -18,7 +18,7 @@ class CParentheses : public IParenthesisCommand
int m_command;
};

class CUnaryCommand : public IUnaryCommand
class CUnaryCommand final : public IUnaryCommand
{
public:
CUnaryCommand(int command);
Expand All @@ -33,7 +33,7 @@ class CUnaryCommand : public IUnaryCommand
std::shared_ptr<CalculatorVector<int>> m_command;
};

class CBinaryCommand : public IBinaryCommand
class CBinaryCommand final : public IBinaryCommand
{
public:
CBinaryCommand(int command);
Expand All @@ -46,7 +46,7 @@ class CBinaryCommand : public IBinaryCommand
int m_command;
};

class COpndCommand : public IOpndCommand
class COpndCommand final : public IOpndCommand
{
public:
COpndCommand(
Expand Down

0 comments on commit e2c7db6

Please sign in to comment.