Q&A

Q1:How many different classes and components should I have? Do I put everything into one component? Should I have one class?
A1: In organizing your components, you certainly will want to separate out your buss1iness components from your data components. This keeps the logic physically separate and also enables you to easily move the physical location of the component to another machine.

Regarding how many components and how to organize classes within components, there isn't one correct answer, but there are a few different approaches. One approach is to organize components and classes by process. You can have a separate class for all your transaction methods, another one for your accounts, and another for the customer. Later, you can put ...

Get Sams Teach Yourself Microsoft® Windows® DNA Programming in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.