Please enable JavaScript.
Coggle requires JavaScript to display documents.
OOP in C#, this is how props in a class are created, access modifier:this…
-
-
-
-
-
-
method overloading
when we implement two methods with the same name and the same return type but with the different parameters there will be happen overloading
it means if we define a default value for that one it has parameter when we call the method that one has no parameter will call and the other one will be hidden by overloading
-
when we create a property ,behind the scene creates a private field that we can store the data to that field and get the data back from that field
when we dont customize the get and set in property its done by default by private field.but the benefit of property is that we can customize the how data can get or set.
the proper way to create a property is in C# object is that create a public property that creates a private field for us.
-