What do you understand by private, protected and public?

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,









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 mean by Deadlock?
What do you mean by Serialized?
What do you learn in AI?
What do you mean by docker container
What do you mean by Read Uncommitted?
What do you mean by Read Committed?
What do you mean by Repeatable Read?
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 understand by Big Data?
What do you think about client-side/server-side coding ?
What if the main() method is declared as private?
ModuleNotFoundError: No module named 'cetem-publico'
ModuleNotFoundError: No module named 'cetem-publico'
What does COMMIT do?
what session.flush() do ?
What does the delete operator do?
What does the delete operator do?
Using Protected Access in JSP
How do you do data mining projects?
What do data scientists earn?
How do you define a constant?
How do you sum a dictionary
What do I need to do to use a MSSQL-Server with Web-Harvester?
What's the proper way to test a class with private methods using JUnit?
Do you need math for AI?
What does a special set of tags <?= and ?> do in PHP?
What does hadoop fsck command do?
What does hadoop fsck command do?
what does a technical business analyst do
what is java and why do i need it?
What can R do that Python can t?
What does a data scientist Do example?
What does a data scientist do daily?
What degree do data scientists have?
What skills do I need for machine learning?
What data scientists do all day work?
What skills do I need to be a data analyst?

Ads