Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions manual/io_custom_classes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ The syntax is:
ClassDef(<ClassName>, <VersionNumber>)
{% endhighlight %}

(In the case of classes inheriting from `TObject`, or from a non-TObject base class declaring itself `ClassDef` or `ClassDefOverride` but not `ClassDefNV`,
then it's better to use `ClassDefOverride` in the child instead of `ClassDef`. Same comment applies to `ClassDefInline` and their override variants.)

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).

`ClassDef` injects some methods in the class definition useful for runtime reflection.
Expand Down
Loading