+ 2
How to create a node class and its constructor
creat a node class along with it's constructors. assign the data data.
1 Resposta
+ 2
class Node {
Node next;
Node(){
int data =0;
Head = null;
}
Node(int d) {
int data = d;
Head = null;
}
}