J
Juan Pablo
Hi.
I have 3 objects. Object INTERFACEDAT will interact with plain text
files and retrieve some kind of recordset/collection, a FIELDS object,
which will be populated with FIELD objects. From the main module I
want to retrieve a collection of FIELDS so I need to include the 3
classes. This seems good because main needs to know these 3 classes.
But how can avoid, for example, creating an instance of FIELDS
directly in main module, I mean, I want only INTERFACEDAT to create
this kind of object. The same applies to FIELD object. How can I
restrict the creation of these to objects to INTERFACEDAT, how can
avoid from main doing this (field* f = new field?
Thank you in advance
Juan Pablo Polotto
I have 3 objects. Object INTERFACEDAT will interact with plain text
files and retrieve some kind of recordset/collection, a FIELDS object,
which will be populated with FIELD objects. From the main module I
want to retrieve a collection of FIELDS so I need to include the 3
classes. This seems good because main needs to know these 3 classes.
But how can avoid, for example, creating an instance of FIELDS
directly in main module, I mean, I want only INTERFACEDAT to create
this kind of object. The same applies to FIELD object. How can I
restrict the creation of these to objects to INTERFACEDAT, how can
avoid from main doing this (field* f = new field?
Thank you in advance
Juan Pablo Polotto