Skip to content

Commit 5021083

Browse files
ferdymercurysilverweed
authored andcommitted
Mention ClassDefOverride
1 parent c885b76 commit 5021083

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

manual/io_custom_classes/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +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`.)
221+
220222
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).
221223

222224
`ClassDef` injects some methods in the class definition useful for runtime reflection.

0 commit comments

Comments
 (0)