Re:Public/protected/private is an unnecessary feature
by WorldMaker on Friday June 20, 2025 @10:27PM
(#44334006)
Technically Java has both `final` and `sealed`, and the distinction between the two is complicated, but `sealed` is the more powerful/capable/adjustable of the two. But the rest of your point stands and it does seem useful that C++ is paying more attention to the large ecosystems of its descendant languages and other relatives.
[ Parent
| on HN ]
Re:Public/protected/private is an unnecessary feature
by throwaway2037 on Sunday June 22, 2025 @04:34AM
(#44345117)
Holy shit: I stand corrected about sealed keyword in Java! It was added in Java 17. <Hat tip>