I am a complete newbie to OO, and I have limited VB experience. However, I am in the process of planning an application, and would like some advice.
The application will be tied to a SQL Server for the DB, and will be used for entering, tracking, and saving job information for a commercial print shop.
Here is my plan, and if anyone sees a problem with this thought process, let me know
I would like to have 5 classes. Customer, Job, Ink, Stock, and Press. Each class, except job will have unique properties and very few methods. Job however, will have many properties from each of the other 4 classes. I plan to have each class be a 'top-level' class, rather than a sub-class. I considered having job a sub-class of one of the others, but abandoned the idea.
As I said this is my first attempt at OO, and if I am way off here, feel free to tell me that - I'll go back and hit the books.
The plan for the app will be:
User creates new instances of ink, press, stock, or customer. These are then written to the db.
The user may also create a new instace of a job, and validation will occur to ensure that the customer, ink, press, and stock exist in the db, otherwise, the user will be prompted to add an instance of the appropriate class.
Once the job is entered, some pricing methods will occur, as well as a "job ticket" form created and printed. The job info is written to the db.
Sorry for the long post. Am I on the right track here?
TIA
Chris
The application will be tied to a SQL Server for the DB, and will be used for entering, tracking, and saving job information for a commercial print shop.
Here is my plan, and if anyone sees a problem with this thought process, let me know
I would like to have 5 classes. Customer, Job, Ink, Stock, and Press. Each class, except job will have unique properties and very few methods. Job however, will have many properties from each of the other 4 classes. I plan to have each class be a 'top-level' class, rather than a sub-class. I considered having job a sub-class of one of the others, but abandoned the idea.
As I said this is my first attempt at OO, and if I am way off here, feel free to tell me that - I'll go back and hit the books.
The plan for the app will be:
User creates new instances of ink, press, stock, or customer. These are then written to the db.
The user may also create a new instace of a job, and validation will occur to ensure that the customer, ink, press, and stock exist in the db, otherwise, the user will be prompted to add an instance of the appropriate class.
Once the job is entered, some pricing methods will occur, as well as a "job ticket" form created and printed. The job info is written to the db.
Sorry for the long post. Am I on the right track here?
TIA
Chris