If we have declared all classes as static in a application the we have to be careful in using only public , private or internal access modifiers. In a web application we have events which are protected. Hence, we can not mark the class as static.
Yes. Why not you can have all your classes static in an application but this is not recommended and memory consumption will be high. Being a programmer, we must care of memory management / garbage collector, we should write code using best practices and recommended way.
technically yes we can,logically no we can't
Although you can do it but it is not a good practice since it will occupier more memory.
Yes, We can. Based on requirement.
Yes, We can have all classes as static so that no object creation of the classes is required. If Class is static type then all its members should be static type and Static can't be instanced as they are loaded into the memory in very early and also they consume more and more amount of memory and ultimately causes the reduction of performance of the application. The static class members are accessed with the class name itself.
No appropriate need we can use
Yes you can have but Its not advised
Yes Practically- Yes but if you all the classes static then it will be loaded in memory all the time, It will consume the memory.
Yes and No. Practically- Yes but if you all the classes static then it will be loaded in memory all the time, It will consume the memory.
No,It is not recommended because it decreases performance as it increases load,gives error inputs as data remains in till it is cleared .
yes we can have all the classes static.
Yes we can have all the classes static in an application?
Yes we can have all classes static.
yes we can have.
Yes ! we can have all the classes static in an application
I think yes we can.