AI Features

- Solution

In this lesson, we'll look at the solution to the exercise in the previous lesson.

We'll cover the following...

Solution

C++
class Base{
public:
Base(int){};
};
class DerivePublic: public Base{
using Base::Base;
};
class DeriveProtected: protected Base{
using Base::Base;
};
class DerivePrivate: private Base{
using Base::Base;
};
int main(){
Base(1);
DerivePublic(1);
DeriveProtected(1);
DerivePrivate(1);
}
...