Skip to content

Commit 61933c1

Browse files
authored
Update Classes.md
The docs mentioned that Java has a concept of "static classes", which is not the case. C#, on the other hand, has that feature.
1 parent 55b4957 commit 61933c1

File tree

1 file changed

+1
-1
lines changed
  • packages/documentation/copy/en/handbook-v2

1 file changed

+1
-1
lines changed

packages/documentation/copy/en/handbook-v2/Classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ class S {
887887

888888
### Why No Static Classes?
889889

890-
TypeScript (and JavaScript) don't have a construct called `static class` the same way C# and Java do.
890+
TypeScript (and JavaScript) don't have a construct called `static class` the same way as, for example, C# does.
891891

892892
Those constructs _only_ exist because those languages force all data and functions to be inside a class; because that restriction doesn't exist in TypeScript, there's no need for them.
893893
A class with only a single instance is typically just represented as a normal _object_ in JavaScript/TypeScript.

0 commit comments

Comments
 (0)