adding the comment
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
template <class T>
|
template <class T>
|
||||||
class Node {
|
class Node {
|
||||||
|
// this is an exception in this course
|
||||||
|
// where we make the member variables of this tiny class public.
|
||||||
public:
|
public:
|
||||||
T value;
|
T value;
|
||||||
Node* next;
|
Node* next;
|
||||||
Node* prev;
|
Node* prev;
|
||||||
private:
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// A "forward declaration" of this class is needed
|
// A "forward declaration" of this class is needed
|
||||||
|
|||||||
Reference in New Issue
Block a user