Interviews1 answer
Can we declare class as protected?
1 Answer
Yes we can declare a class as protected.The objects of protected class are only accessible inside the package and outside the package but only by inheritance
Bilal SheikhPosted Feb 8, 2020, 5:58 AM EST