If a constructor is defined in protected access, then?
If a constructor is defined in protected access, then? Correct Answer It’s instance can be created inside the subclasses
The instances will be allowed to be created only inside the sub classes. This is because the protected members will be inherited and hence the constructor too. This will allow the subclasses to call the constructor whenever an object is created.
মোঃ আরিফুল ইসলাম
Feb 20, 2025