Mercurial > octave
changeset 26145:64b972120ec3
doc: Mention example method "roots" in OOP example (bug #55120).
* doc/interpreter/oop.txi: Mention example method "roots" in OOP example.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Wed, 28 Nov 2018 09:47:35 +0100 |
parents | 494452db0477 |
children | 389d86d41cbf |
files | doc/interpreter/oop.txi |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/oop.txi Tue Nov 27 22:04:25 2018 +0100 +++ b/doc/interpreter/oop.txi Wed Nov 28 09:47:35 2018 +0100 @@ -150,7 +150,13 @@ @DOCSTRING(ismethod) @noindent -For example: +For a polynomial class it makes sense to have a method to compute its roots. + +@example +@EXAMPLEFILE(@polynomial/roots.m) +@end example + +We can check for the existence of the @code{roots}-method by calling: @example @group