mirror of
https://github.com/DevEhChad/cpp-cheatsheet.git
synced 2025-11-08 14:01:34 +00:00
Class and Template section fix.
This commit is contained in:
committed by
GitHub
parent
78ca3f18b6
commit
30ca9f532f
@@ -275,7 +275,7 @@ class W: public T, public U {};
|
|||||||
// Multiple inheritance
|
// Multiple inheritance
|
||||||
class X: public virtual T {};
|
class X: public virtual T {};
|
||||||
// Classes derived from X have base T directly
|
// Classes derived from X have base T directly
|
||||||
```cpp
|
```
|
||||||
|
|
||||||
All classes have a default copy constructor, assignment operator, and destructor, which perform the
|
All classes have a default copy constructor, assignment operator, and destructor, which perform the
|
||||||
corresponding operations on each data member and each base class as shown above. There is also a default no-argument
|
corresponding operations on each data member and each base class as shown above. There is also a default no-argument
|
||||||
|
|||||||
Reference in New Issue
Block a user