What do you understand by private, protected and public?

Ads
 

What do you understand by private, protected and public?

Hi,

What do you understand by private, protected and public?

thanks,

View Answers

April 16, 2013 at 6:26 PM

HI,

In Java programming we use this to display the result: inheritance in private,protected,public etc. To know the concept of inheritance clearly you must have the idea of class and its features like methods, data members, access controls, constructors, keywords this, super etc. The private inheritance is used to define the private class in most restrictive, while public is the least restrictive. However the protected keyword allows visibility to a derived class in a different package.

For more about the Private, Protected and public visit this link :

http://www.roseindia.net/java/language/inheritance.shtml

Thanks,

Ads









Related Tutorials/Questions & Answers:
What do you understand by private, protected and public?
What do you understand by JPA?
Advertisements
What do you understand by Kafka broker
What do you understand by Virtual Hosting?
What do you understand by Domain Parking?
What do you understand by Hibernate in Java?
what do you understand by big data and what are its basic components
What do you understand by the are PHP, ASP and Perl languages?
private and protected
In Java, what's the difference between public, default, protected, and private?
What do you learn in AI?
What do you mean by docker container
What skills do you need for big data?
What do you mean by platform independence?
What courses do you take for data science?
What is the access scope of a protected method?
What do you think about client-side/server-side coding ?
What do you understand by Big Data?
What if the main() method is declared as private?
How do you do data mining projects?
what session.flush() do ?
Do you need math for AI?
ModuleNotFoundError: No module named 'cetem-publico'
ModuleNotFoundError: No module named 'cetem-publico'
Using Protected Access in JSP
What do data scientists earn?
What's the proper way to test a class with private methods using JUnit?
What do I need to do to use a MSSQL-Server with Web-Harvester?
What does hadoop fsck command do?
What does hadoop fsck command do?
Do you have to be smart to be a data scientist?

Ads