• Post Reply Bookmark Topic Watch Topic
  • New Topic

Encapsulation and Inheritance  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In properly written java software, is Encapsulation used to protect the code's Inheritance structure?
 
Sheriff
Posts: 11494
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

Please cite your sources. Where is this question coming from? Is this something you have to answer as part of school work you have to complete? If so, what do you think is the answer? If not, what made you ask this question?

Sorry to answer your question with a bunch of questions but there are many students who visit these forums and we need to be careful in answering any questions so that we don't inadvertently to do their work for them.
 
Ranch Hand
Posts: 99
1
Chrome Eclipse IDE MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tyrone Berhane wrote:is Encapsulation used to protect the code's Inheritance structure?

1. What do you understand by the term "Encapsulation"?
2. What relevance could the answer to 1  have on your original question?

 
Sheriff
Posts: 4931
334
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clements, have a cow for the tip to OP not to put the cart before the horse.

Such question of course can be answered only if all words within the question and their definitions are known.

@OP
As a starting point you can choose to start researching here. I'm sure from there you could assemble the answer.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!