Question : The protected modifier on a Field declaration within a public class means that the field . 1. Cannot be modified 2. Can be read but not written from outside the class 3. Can be read and written from this class and its subclasses only within the same package 4. Can be read and written from this class and its subclasses defined in any package
1. public abstract class Car { protected void accelerate();} 2. public interface Car {protected abstract void accelerate();} 3. Access Mostly Uused Products by 50000+ Subscribers 4. public abstract class Car { protected abstract void accelerate();}
5. public abstract class Car { protected abstract void accelerate() { //more car can do}}