Navigation

Related Articles

Back to Latest Articles

C# Basics – Classes – Part 11

We introduce classes in C# programming language in this tutorial.


Andraz Krzisnik
C# Basics – Classes – Part 11

Classes

Class is basically a container of functions. It can be a separate file or it can be written in the same file as your main project file. We can also create a custom object with properties we define.

We briefly touched the subject of access keywords that determine how accessible is some object or a variable.

  • An object, when set to private, is accessible only within the curly brackets it’s been declared in.
  • An object, when set to public, is accessible from outside the curly brackets it’s been declared in.
  • An object, when set to protected, is accessible only within the curly brackets it’s been declared in and in it’s inherited classes.
Download Examples Next Chapter
Show Comments (0)

Comments

Related Articles

C# Tutorial

C# Tutorial: How To Apply Erosion To An Image

Erosion is a morphological process, where pixels at an object boundaries are removed. Erosion and dilation are a pair of basic morphological transformations, which are completely...

Posted on by Andraz Krzisnik
C# Tutorial

C# Tutorial: How To Apply Dilation To An Image

Dilation is a simple morphology process which changes pixel intensities based on the change of intensities that occur at object boundaries. This process is used on grayscale...

Posted on by Andraz Krzisnik