asp.net - Object oriented design pattern for create more objects in a class(c#) -
I am new to OOP, I had a data storage class which needs to store temporary data, which requires application for calculation in the future, to allot different values in this class and to return more than one return class Items need, according to my knowledge there is OOP pattern, which I can use for this kind of problem which increases the applicability again if I Please be experts in this field to find the best patterns to help my problem.
Thank you!
A possible solution is to use this. You can apply participants like this example:
-
Defines the interface for component (librarian) objects that can dynamically add responsibilities to them. .
-
Concrete blanket (book, video) defines an object with which additional responsibilities can be attached.
-
The decorator refers to a component object and defines the interface that corresponds to the component's interface.
-
The ConcertDecorator (Lending) connects the responsibilities to the component.
Comments
Post a Comment