Answer the question
In order to leave comments, you need to log in
How is a custom constructor inherited?
Hello!
I have a base class and its constructor:
class dom
{
public:
dom(int h, string name);
string n_Name;
int height;
private:
};
dom::dom(int h, string name)
{
n_Name = name;
height = h;
cout << "Constructor 1 in work" << endl;
};
class skyskr : public dom
{
public:
int kol_lud;
void st(int h);
skyskr();????
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question