Can a class be declared as protected?

Ads
 

Can a class be declared as protected?

Hi,

Can a class be declared as protected?

thanks

View Answers

April 11, 2013 at 1:16 PM

Hi,

A class can't be declared as protected. only methods can be declared as protected.

http://www.roseindia.net/java/master-java/method_overriding.shtml

This link will helpful to you.

thanks,

Ads









Related Tutorials/Questions & Answers:
Can a class be declared as static?
Can a class be declared as protected?
Advertisements
Can a abstract class be declared final?
Can a main method be declared final?
variables and methods declared in abstract class is abstract or not
Can a method inside a Interface be declared as final?
Can a method inside a Interface be declared as final?
Can a Class extend more than one Class?
there are class A & class B.How can i get members of class A& B?
Abstract Class in Java
Java Abstract Class
Can you create an object of an abstract class?
Can we instantiate abstract class in Java?
can we use class in jsp which implements interface
Can a abstract class be defined without any abstract methods?
ModuleNotFoundError: No module named 'declared'
ModuleNotFoundError: No module named 'declared'
Can I have multiple main() methods in the same class?
How can i pass the valus from a JSP to the action class???
Why is the main method declared static?
can we use scanner class,class , object and methods to get output without using constructor ????
Inner class in java
Class
Java Abstract Class Example
My Base Class is Changing every time in my code. How I can overcome this?
Using HeaderFooter class of iText API , Can we display multiple phrases in the footer section of PDF ,each with different alignment.
class
struts2 how can we add an radio button to form using a class(doa)
struts2 how can we add an radio button to form using a class(doa)
Explain final class, abstract class and super class.
What if the main() method is declared as private?

Ads