adding the comment

This commit is contained in:
Jidong Xiao
2024-02-13 13:20:33 -05:00
parent ae6e937a3d
commit 8202884d34

View File

@@ -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