News for hackers. Stuff that matters.
Re:OOP Is Dead, Long Live OOP by spdionis on Thursday October 18, 2018 @06:32PM (#18252782)
I think C++ is the only one that doesn't have interfaces.
Re:OOP Is Dead, Long Live OOP by maxxxxx on Thursday October 18, 2018 @08:07PM (#18253395)
An abstract class with only abstract methods is essentially the same.
Re:OOP Is Dead, Long Live OOP by jcelerier on Friday October 19, 2018 @07:57AM (#18256032)
It's most certainly not:

- you have to at least implement the destructor if you are going to use the abstract class across multiple DLLs - else, dynamic_cast won't work since each DLL may have its own type_info object for the abstract class

- even if a method is marked abstract, it can still have a default implementation: https://gcc.godbolt.org/z/bAE7v6 though other prominent OO languages are slowly catching up with this ;)