0
About Getters and setters
Which is first executed setters or getters ?
5 Respostas
+ 1
That's an curious question... what makes you ask it?
those are methods, so the first one to be executed will depend on which one the rest of the code us calling first, right?
+ 1
Shahrukh Khan Getters will always work but it will return either null or 0 depends upon the datatype because you are not setting the value.
0
if you're talking about visual basics or c# component properties, definitely gets are executed before sets. Otherwise if you defined a function it depends which one you call.
0
Will getters work without setters
0
if vb/c# properties yes. define your property as read only. it doesn't matter with other languages they'd be like any other function.