4. Methods and Parameters
From what you have learned about C# programming so far, you should be able to write straightforward programs consisting of a list of statements, similar to the way programs were created in the 1970s. Programming has come a long way since the 1970s; however, as programs have become more complex, new paradigms have emerged to manage that complexity. “Procedural” or “structured” programming provides constructs by which statements are grouped together to form units. Furthermore, with structured programming, it is possible to pass data to a group of statements and then have data returned once the statements have executed.
Besides the basics of calling and defining methods, this chapter covers some slightly more advanced ...
Get Essential C# 6.0 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.