« Return to Thread: rename and redefine with an attribute and a method

Re: rename and redefine with an attribute and a method

by Peter Gummer-2 :: Rate this Message:

Reply to Author | View in Thread

David wrote:

> ... but no. After removing the redefine clause, everything compiles
> sweetly, but it does not work. Using the debugger, it seems that
> routine c is never entered for objects of class B. It is just
> returning the integer that I renamed c_int.

How are you calling routine c? You need to call it through a variable of
static type B, because routine c does not exist in the ancestor class A.

- Peter Gummer



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/eiffel_software/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/eiffel_software/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:eiffel_software-digest@...
    mailto:eiffel_software-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    eiffel_software-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

 « Return to Thread: rename and redefine with an attribute and a method

LightInTheBox - Buy quality products at wholesale price