poly: remove extra semicolon
This commit is contained in:
parent
83ae29efcc
commit
0e43b30736
1 changed files with 1 additions and 1 deletions
2
poly.cpp
2
poly.cpp
|
@ -5,7 +5,7 @@
|
||||||
class Animal {
|
class Animal {
|
||||||
public:
|
public:
|
||||||
// virtual std::string talk() = 0; /* pure virtual */
|
// virtual std::string talk() = 0; /* pure virtual */
|
||||||
virtual std::string talk() { ; /* or an implementation */
|
virtual std::string talk() { /* or an implementation */
|
||||||
return "<sound>";
|
return "<sound>";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue