|
Post by 1.8T on Mar 17, 2002 11:25:29 GMT -5
for the URLTree description in the assignment, it says URLTree must have the following public methods:
URLTree() : Create a new, empty URLTree
isn't this a constructor and not a method?
doesn't it just create a tree with root node = "" and that's it?
oh and in my class class i always hafta call this URLTree (constructor/method) before i call insert., correct??.,
|
|
barp
Full Member
Posts: 28
|
Post by barp on Mar 17, 2002 13:46:53 GMT -5
for the URLTree description in the assignment, it says URLTree must have the following public methods: URLTree() : Create a new, empty URLTree isn't this a constructor and not a method? doesn't it just create a tree with root node = "" and that's it?
yeah, I did my URLTree() as a constructor,& I *think* it's also a method.
and for insert(),, if it's empty you have to create a new tree node, kinda like URLTree(), so make an if statement....
|
|
|
Post by Random_Death on Mar 17, 2002 19:26:03 GMT -5
A constructor is still a method.
|
|