Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
thomasz
4y ago
0 comments
Save
Share
In practice, the difference is pretty small in C#. For almost all purposes classes act like a namespace (System.Math), and can be imported like one. Former 6 will add even more syntactic sugar, so that methods can be defined outside classes.
0 comments
1 comments · 1 top-level
top
newest
oldest
stickfigure
4y ago
You can import static methods in Java too. Works the same.
j
/
k
navigate · click thread line to collapse