Apr 24, 2018 at 9:57am
Like this:
1 2 3 4 5
|
class test2("hello") : public test
{
public:
using test::test;
}t2("hello"); // Note: t2 is an object of type test2
|
Or maybe you want this?
1 2 3 4 5 6 7
|
class test2 : public test
{
public:
test2() : test("hello")
{
}
}
|
Last edited on Apr 24, 2018 at 10:00am
Apr 24, 2018 at 10:03am
yes it's that i need. thank you so much for all.
so the base constructor is after the constructor name... thank you so much for all