Talk:Sealed classes and methods: Difference between revisions
Content added Content deleted
(Remove private methods line from description) |
(Responded to Garbanzo.) |
||
Line 1: | Line 1: | ||
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. [[User:Garbanzo|Garbanzo]] ([[User talk:Garbanzo|talk]]) 23:07, 30 June 2023 (UTC) |
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. [[User:Garbanzo|Garbanzo]] ([[User talk: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. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 09:00, 1 July 2023 (UTC) |