<html lang="en"> <head> <title>Object Oriented Programming - GNU Octave</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="GNU Octave"> <meta name="generator" content="makeinfo 4.13"> <link title="Top" rel="start" href="index.html#Top"> <link rel="prev" href="Audio-Processing.html#Audio-Processing" title="Audio Processing"> <link rel="next" href="GUI-Development.html#GUI-Development" title="GUI Development"> <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> <meta http-equiv="Content-Style-Type" content="text/css"> <style type="text/css"><!-- pre.display { font-family:inherit } pre.format { font-family:inherit } pre.smalldisplay { font-family:inherit; font-size:smaller } pre.smallformat { font-family:inherit; font-size:smaller } pre.smallexample { font-size:smaller } pre.smalllisp { font-size:smaller } span.sc { font-variant:small-caps } span.roman { font-family:serif; font-weight:normal; } span.sansserif { font-family:sans-serif; font-weight:normal; } --></style> </head> <body> <div class="node"> <a name="Object-Oriented-Programming"></a> <p> Next: <a rel="next" accesskey="n" href="GUI-Development.html#GUI-Development">GUI Development</a>, Previous: <a rel="previous" accesskey="p" href="Audio-Processing.html#Audio-Processing">Audio Processing</a>, Up: <a rel="up" accesskey="u" href="index.html#Top">Top</a> <hr> </div> <h2 class="chapter">34 Object Oriented Programming</h2> <p>Octave includes the capability to include user classes, including the features of operator and function overloading. Equally a user class can be used to encapsulate certain properties of the class so that they cannot be altered accidentally and can be set up to address the issue of class precedence in mixed class operations. <p>This chapter discussions the means of constructing a user class with the example of a polynomial class, how to query and set the properties of this class, together with the means to overload operators and functions. <ul class="menu"> <li><a accesskey="1" href="Creating-a-Class.html#Creating-a-Class">Creating a Class</a> <li><a accesskey="2" href="Manipulating-Classes.html#Manipulating-Classes">Manipulating Classes</a> <li><a accesskey="3" href="Indexing-Objects.html#Indexing-Objects">Indexing Objects</a> <li><a accesskey="4" href="Overloading-Objects.html#Overloading-Objects">Overloading Objects</a> <li><a accesskey="5" href="Inheritance-and-Aggregation.html#Inheritance-and-Aggregation">Inheritance and Aggregation</a> </ul> </body></html>