Hi,
I have a base class which contains an equal? method. I've then inherited that object and want to use the equal? method in the super class as part of the equal? method in the sub class.
class A
@a
@b
def equal?(in)
if(@a == in.a && @b == in.b)
true
else
false
end
end
end
class B < A
@c
def equal?(in)
#This is the part im not sure of
if(self.equal?in && @c == in.c)
true
else
false
end
end
end
How do i reference the inherited A class object in the subclass so i can do the comparison?
Cheers
Dan