Skip to content

Commit dcb1a5e

Browse files
ferdymercurysilverweed
authored andcommitted
mention pathway B for ClassDefOverride use
as suggested by pcanal
1 parent 5021083 commit dcb1a5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

manual/io_custom_classes/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ The syntax is:
217217
ClassDef(<ClassName>, <VersionNumber>)
218218
{% endhighlight %}
219219

220-
(In the case of classes inheriting from `TObject`, it's better to use `ClassDefOverride` instead of `ClassDef`.)
220+
(In the case of classes inheriting from `TObject`, or from a non-TObject base class declaring itself `ClassDef*`,
221+
it's then better to use `ClassDefOverride` in the child instead of `ClassDef`.)
221222

222223
The version number identifies this particular version of the class. A version number equal to 0 tells ROOT to not store the class in a root file, but only its base classes (if any).
223224

0 commit comments

Comments
 (0)