c# - What are self contained functions? -


so i've been assigned talk adding new code routines program such self contained functions , new classes, yet haven't been taught kind of programming terminology yet. i've tried looking online everywhere doesn't explain enough.

the questions i'm little confused following:

what self contained functions in c#? (code examples :3)
, how added in object-oriented way?

help appreciated, thanks.

self-contained functions , classes , object-oriented pretty same thing @ high level you're talking about.

http://en.wikipedia.org/wiki/object-oriented_programming

i'm guessing code base mess, functions using global variables, , giant code files. goal make each item 1 thing. instead of function called "run" 500 lines long, should instead have function called "run" calls functions "getrecentdata", "checkdataforerrors", "reporterrors", "processvaliddata", , "reportsuccess". means when need change definition of error data, example, related code neatly in "checkdataforerrors".

this huge topic , in way on head. i'd recommend object oriented tutorial such http://www.blackwasp.co.uk/csharpobjectoriented.aspx or 1 of many others.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -