+ 2

How to create a node class and its constructor

creat a node class along with it's constructors. assign the data data.

23rd Feb 2018, 4:02 PM
Musadiq Hussain
Musadiq Hussain - avatar
1 Antwort
+ 2
class Node { Node next; Node(){ int data =0; Head = null; } Node(int d) { int data = d; Head = null; } }
23rd Feb 2018, 4:05 PM
Musadiq Hussain
Musadiq Hussain - avatar