Skip to content

Commit 7a5ec03

Browse files
authored
Update design-an-expression-tree-with-evaluate-function.cpp
1 parent fb28fd5 commit 7a5ec03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/design-an-expression-tree-with-evaluate-function.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class Node {
77
public:
88
virtual ~Node () {};
9-
virtual int evaluate() const { return 0; };
9+
virtual int evaluate() const = 0;
1010
protected:
1111
};
1212

0 commit comments

Comments
 (0)