Talk:Sealed classes and methods

From Rosetta Code

Nice task to compare languages. I removed the line about private methods being sealed from the description. C++ supports private virtual functions which can be overloaded in derived classes. They could be sealed but that is not common. Garbanzo (talk) 23:07, 30 June 2023 (UTC)

Yeah, I'd overlooked that you can have private virtual functions in C++ though I can't think of any other OO language where private member functions can be overridden. I'm happy to just omit that line rather than try to qualify it in some way. --PureFox (talk) 09:00, 1 July 2023 (UTC)