> 1. What's the practical difference between an abstract class and an interface?
Interface? You are talking about the C++ language, right?
The funny thing is I just good faith assumed that this was some new feature being added in C++17 that I'd now have to figure out how to use.
Re:Is the C++ preprocessor still needed?
by santaclaus on Tuesday May 09, 2017 @11:28PM
(#14305712)
> Interface? You are talking about the C++ language, right?
If Sutter's metaclasses get into C++20 C++ could indeed have an equivalent to interface enforced by the compiler.
> What's the practical difference between an abstract class and an interface?
C++ doesn't have "interfaces". No wonder you think there's too much stuff.
You need a language lawyer to figure out anything but the most basic interactions. For example,
1. What's the practical difference between an abstract class and an interface?
2. When do you have a copy constructor run instead of a cast on initialization if both are defined?
3. When would you use a non-virtual destructor?
What happens when you hire people? Isn't it better to have a small language that everyone understands in its entirety, and has to go out of their way to surprise you?