search for: c_obj

Displaying 1 result from an estimated 1 matches for "c_obj".

Did you mean: __obj
2006 Jun 20
0
Achieve pure object oriented design in Ruby (also posted on Ruby List)
...#array of objects of class B associated with this instance @b_objs #method to create instance of B and add it to above array #methods to modify member variables of an instance of B and C (class C is defined below) end class B @b1 @b2 #array of objects of class C @c_objs #method to create instance of C and add it to above array #methods to modify member variables of an instance of C end class C @c1 @c2 end How would I achieve 4 points listed above? One solution I thought was to have nested classes as below, Class A Class B...