Dear Valeri Thank you for your suggestion. I do not have problems to add a method SetName() to my own class, I am just curious why TCollection::SetName() is not virtual. Best regards Christian Valeri Fine wrote: >Dear Christian > >"named" TList class is called TDataSet > >You may use it either directly or just borrow the idea from the code. > > Best regards, Valeri > >----- Original Message ----- >From: "cstrato" <cstrato@EUnet.at> >To: "roottalk" <roottalk@pcroot.cern.ch> >Sent: Sunday, May 26, 2002 4:46 PM >Subject: [ROOT] TCollection::SetName() > > >>Dear Rene >> >>I have derived my own class from TList and wanted to name it. >>However, I realized that TCollection::SetName() is not virtual, >>while TCollection::GetName() is virtual. >>Is there a certain reason for this? >> >>Best regards >>Christian >>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- >>C.h.r.i.s.t.i.a.n. .S.t.r.a.t.o.w.a >>V.i.e.n.n.a. .A.u.s.t.r.i.a >>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- >> > >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:54 MET