I m new to OOP.. I dont have much time to get experienced much and trying to implement what I ve read from the articles and some chapters abt OOD .. coming to the point :
assume I have a Stock object and I will need to show stock lists in many places of my program to the user. what I m in hesitate is whether I should have a stockList thats implementing a collection type class.. it seems I just need a method returning a dataTable in my stock class..and it will be enough to create a stock object from the ID when user select a row on the grid.. Do u have a suggestion , should I have collection class in these situations . thanks in advance .
assume I have a Stock object and I will need to show stock lists in many places of my program to the user. what I m in hesitate is whether I should have a stockList thats implementing a collection type class.. it seems I just need a method returning a dataTable in my stock class..and it will be enough to create a stock object from the ID when user select a row on the grid.. Do u have a suggestion , should I have collection class in these situations . thanks in advance .