Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
gonzo41
4y ago
0 comments
Save
Share
Alternatively you could just make a final class with public member variables and no getters/setters and just treat it like a struct.
0 comments
1 comments · 1 top-level
top
newest
oldest
ratww
4y ago
That's a great point, there's absolutely nothing wrong with public members if you only want a simple struct.
j
/
k
navigate · click thread line to collapse