有人可以向我解释这一行代码吗?
public class Node {
// in the below line what is next and why the class name("node") is used
//with it
public Node next;
//what is object here and what is data
public Object data;
}
答案 0 :(得分:1)
Object
是.net System.Object
类型
public Node nexy
只是声明一个与您所在类(Node
类)类型相同的变量。