I want to write a classeclass which offeroffers two sequences of elements to its users. The first one (lets call it "primary") is the main of the class and will be use 80% of the time. The second one (lets call it "secondary") is less important, but still need to be in the same class. The question is: what interface should the class offer to its users?
This problem came in the context of an exerciceexercise in which I am writing a simple database access framework. Here are the classes involved in the question:
The table class consistconsists of a sequence of columns and an other sequence of rows. The main use of the table is manipulating (access, add and remove) the rows.