[ROOT] To inherit a Class

From: Jose Caballero (Jose.Caballero@ciemat.es)
Date: Thu Oct 02 2003 - 18:47:57 MEST


Hello:

I would like to create a class named MyTTree

class MyTTree : public TTree {
...
}

and I would like to override the Print() method.
For example, if I have a object

MyTTree *T

I want, if I issue

T->Print()

show a text line in the screen ("Printing the Tree content...") followed 
by the standard output of the TTree::Print() method.
How can I do it. Or... in which part of the User Guide I can read it?

Thank you very much in advance for your help.



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET