What is this () in constructor in C#?

The “this” keyword in C# is used to refer to the current instance of the class . It is also used to differentiate between the method parameters and class fields if they both have the same name. Another usage of “this” keyword is to call another constructor from a constructor in the same class.

Sizin İçin Seçtik  C++ da constructor Nedir?

Leave a Reply

Your email address will not be published. Required fields are marked *