Can we declare class as protected?
sakshi goyal
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