# Class Synopses

This example is Perl; it's the standard DirHandle module. I've cut out the code, so you'll have to trust me on the parameters.

ProgramListing version:

    package DirHandle;

    require 5.000;
    use Carp;
    use Symbol;

    sub new {
    }

ClassSynopsis version:

DirHandle superclass1 superclass2

    require 5.000;
    use Carp;
    use Symbol;

new $dirname DESTROY

This example is IDL from the DOM spec.

ProgramListing version:

    interface Element : Node {
      readonly attribute  DOMString            tagName;
      DOMString                 getAttribute(in DOMString name);
      void                      setAttribute(in DOMString name,
                                             in DOMString value)
                                             raises(DOMException);
    };

ClassSynopsis version:

Element Node readonly attribute DOMString `tagName` DOMString getAttribute in DOMString name setAttribute in DOMString name in DOMString value DOMException public TextFileWriter Superclass1 Superclass2 Interface1 Interface2 Exception1 Exception2 private Writer `writer` public String `writerName` "MyWriter" static public write ResultTreeFragment frag String file Exception1 Exception2

    class Rectangle_with_data:  virtual Shape, virtual Data_container
    {
    ...
    };

ClassSynopsis version:

Rectangle_with_data virtual Shape virtual Data_container

    ...