- 1
Why I declare everything static
5 Réponses
+ 8
static means that "that member" belongs to a class rather than to an object.
To declare everything static means you will not need to create objects
+ 4
not sure.... you tell me....
+ 4
Good question, why do you do that?
+ 3
By using static methods only you do procedural programming in an oop language.
0
main advantage: easier to test (no need to setup complex unit test Environment)
drawback: no real oop, more like procedural languages like C or FORTRAN