© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
G. ByrneTarget C#https://doi.org/10.1007/978-1-4842-8619-7_13

13. Classes

Gerard Byrne1  
(1)
Belfast, Ireland
 

Classes and Objects in OOP

We learned in Chapter 12 that methods belong inside classes and classes consist of variables and methods. We saw that there are a number of different method types that can be used in our code. The method types we can create or use are
  • Void methods that return no value and simply execute code

  • Value methods that return a value of a specific data type after executing

  • Parameter methods that take actual values as their parameters and that may or may not return a value of a specific data type after executing

  • Overloaded methods, which ...

Get Target C#: Simple Hands-On Programming with Visual Studio 2022 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.