GeekInterview.com
Series: Subject: Topic:
Question: 5 of 85

What do you mean by package access modifier?

Asked by: neven | Member Since Nov-2011 | Asked on: Nov 12th, 2011

View all questions by neven

Showing Answers 1 - 1 of 1 Answers
Sandhya.Kishan

Answered On : Mar 10th, 2012

View all answers by Sandhya.Kishan

Access modifier are used to implement encapsulation feature of oops.There are 3 access specifiers namely

Private: The current class will have access to the field or method.
Protected - The current class and its subclasses will have access to the field or method.
Public - Any class can refer to the field or call the method

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.