Do constructors get inherited?
I mean do they? It doesn't seem that they do, that's just silly
Code:
class Human : public Parent {
public:
Human(string name);
private:
};
Human::Human(string name) {
Name = name;
}
Human is a derived class of Parent. parent is technically a human as well.
I get this error:
[error]
Compiling...
human.cpp
C:\human.cpp(162) : error C2512: 'Parent' : no appropriate default constructor available
Error executing cl.exe.
human.exe - 1 error(s), 0 warning(s)
[/error]
that is really silly, I mean more silly than silly can possibly be!