super just uses the method from the super class. So if you override in some
cases, you can default to the super version. You can also use it, for
instance, if in a subclass the method was, say, the double of that in the
superclass.
                         Siddhartha


On 3 July 2013 15:48, Ramana Venkata <notifications@github.com> wrote:

> In src/main/scala/core/Expression.scala:
>
> > @@ -57,6 +59,10 @@ trait Operators {
> >
> >  trait Term extends Expression with Operators {
> >
> > +	// "There is an alternative way to do this, namely override in the number class, using super for the
>
> @siddhartha-gadgil <https://github.com/siddhartha-gadgil> Oh. I didn't
> know that I never used super. I will read about traits a bit and I will
> clean up the code.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/idlike2dream/prime/pull/2/files#r5005730>
> .
>