如上所述题。。我用ns2做无线仿真需要重写Node类只是添加几个变量,那么继承哪个类比较好
直接从object类继承就可以了,是默认的。
http://blog.csdn.net/leo115/article/details/7778219