OOP - Properties and Fields
Hello guys, sorry to disturb you all, consider the following code:
Noticed that we didn't defined the fields but only the properties which is used to get and set the variable.
I have some questions.
We didn't declare any fields or constructors, are the fields created automatically behind the scenes? For the constructor, we will be using the default constructor if nothing is provided?
Noticed that we didn't defined the fields but only the properties which is used to get and set the variable.
I have some questions.
We didn't declare any fields or constructors, are the fields created automatically behind the scenes? For the constructor, we will be using the default constructor if nothing is provided?