Difference between revisions of "Replication"

Line 8: Line 8:
 
feature
 
feature
 
   f: INTEGER
 
   f: INTEGER
   g  
+
   g is
 
       do  
 
       do  
 
         f := f + 1  
 
         f := f + 1  

Revision as of 10:06, 25 August 2006


Work in progress!

class
   B
feature
   f: INTEGER
   g is
      do 
         f := f + 1 
      end
end
class
   D
inherit {NONE}
   B
      rename f as f_1, g as g_1 end
   B
      rename f as f_2, g as g_2 end
feature
end