Question Locked

OO Design

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello,

Language is C#, .net 2.0.

What I'm building is an app that will do the following:

1) Read a param file for parameter values such as directory paths and email server IP address.
2) Monitor a file system for any files that are placed there and take action when they arrive.
3) When they arrive read the .xml files for data to send and email (i.e. TO,From,Subject,etc.)
4) Send the email.
5) Move the .xml file out of the current directory to an archive directory.

This app would be a Windows Service or an app that runs like one having a Start and Stop mechanism to start and stop the monitoring.

This is all well and good and I can get to work , no problem. My question is how would I design this in an OO fashion? I'm an old top-down guy so I'm having a hard time seeing the design. An example would be that I would normally call a function/subroutine to gather the parameter data and use that data throughout the rest of the app. Sounds like global data which I understand is a big OO no-no. Would this type of app have just one class and all methods would be the tasks I've listed above?

Any help teaching this Old dog new tricks would be most appreciated, ;-).

Thanks,
T.

3 replies

by thumbsup2

What is your understanding of the definition of OO and how it works? We need to know at what level you're beginning this endeavor.

by progress_dba

Hi,

My level of understanding would be beginner to intermediate as far as my understanding of OO. I have read a few books and many articles on the subject and I'm trying to use it with stuff I'm building now as part of the learning process. I have to build stuff like this all the time that perform some kind of process either as a monitor type program or a batch process. When I read the examples in the books they all make sense but when I try to apply to my real world stuff I can't make the connection.

Thanks,
T.

This discussion is closed to new replies.