Classes in C#

Hi Everyone,

Today, I am posting a short video showing how to create a simple class in C#.

As you may know, a class is like a template to create an object with certain characteristics.
A class contains public, private, constructors, and methods.

In the next and first video about classes, I make a class with public and private variables.
for a class, it is better to create all as private that and declare properties as public, doing this we are avoiding to let other parts of the code to modify the variables.

Comments

Popular posts from this blog

SFTP download - upload

Using ZipFile

FTP - Server in C# FtpWebRequest