You are here: More Information > Special Tasks
Special Tasks
Technical Reference
> Documenting without Editor > Property Tags > Multiple Use of Topics
Close
Doc-O-Matic 10
Example for Inherited Descriptions

In this example

// Description for A class A { public: // Description For A::Foo() Foo(); // Description For A::Bar() Bar(); }; // Description for B class B : public A { public: Foo(); // Description For B::Bar() Bar(); }; // Description for C class C : public B { public: Foo(); Bar(); };

the description of B::Foo() is Description For A::Foo() because it is undocumented. The description of C::Foo() is the same, because B::Foo() is undocumented and therefore the description of A::Foo() is used. The description of C::Bar() is inherited from B::Bar() because it is the first in the hierarchy that is described.

Copyright © 2000-2020 toolsfactory software inc. All rights reserved.