If a class is a plan for objects, then what about a static class?

Reading C # Step by step, the author mentions that the class is just a plan for objects and is itself useless. Well, how then can static classes work alone?

I understand the concept that static classes cannot be created and exist as one unique instance with its static members. But this destroys the class metaphor a bit like blueprints. How to explain static classes in connection with this idea?

+3
source share
6 answers

, . . , , .

, " , ", , . , , "" .

, "" , : , .

+8

Joel Spolsky - " " , " ".

, , , , . , ; , , .

, , ; , , . , , .

+4

, , , . , ever, , .

+1

, . .

, , .

+1

Head First #, "Static" , .

+1

" , , , ". , , . , :)

, (JAL)

P.S. , .

0
source

Source: https://habr.com/ru/post/1770075/


All Articles