Methods and Parameter Modifiers
To begin this chapter, let’s examine the details of defining type methods. Just like the Main() method
(see Chapter 3), your custom methods may or may not take parameters and may or may not return
values. As you will see over the next several chapters, methods can be implemented within the
scope of classes or structures (and prototyped within interface types) and may be decorated with
various keywords (internal, virtual, public, new, etc.) to qualify their behavior. At this point in the
text, each of our methods has followed this basic format:
Do'stlaringiz bilan baham: |