Hello,

I am trying to create a new class called as myNode, that has *
Node/MobileNode* as its superclass.
I want to create a hierarchy of nodes as Grand Parent, Parent and Child.

The following error is being triggered. Please tell me if I have to
initialize anything to avoid this error.

*"Assertion failed: initialized(), file common/mobilenode.cc, line 408*

*This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information."*
The code for creating a class is as given below:

Class myNode -superclass Node/MobileNode
myNode instproc init {args} {
# Parent class constructor
eval $self next $args
$self instvar role_
set role_ 0
}
myNode instproc define_role { arg } {
set role_ $arg
# 1 is Grand parent
# 2 is Parent
# 3 is Child
}

-
Thanks,
Megha

Reply via email to