public CompactSuffixTree(SimpleSuffixTree simpleSuffixTree)
{
super(simpleSuffixTree.text);
super.root = compactNodes(simpleSuffixTree.root, 0);
}
The above code is a part of a java implementation of the suffix tree.
Here the CompactSuffixTree
extends AbstractSuffixTree
class which has an attribute "text".
The simpleSuffixTree
class also extends the AbstractSuffixTree
class.
"root" is an attribute in the AbstractSuffixTree
class of type Node
class.
Can anyone please explain what does the code "super(simpleSuffixTree.text);" mean in such a context?
NOTE: the attribute "text" is not present in the simpleSuffixTree
class, which is my main point of confusion.strong text