Real Time sample code for Encapsulation and Abstraction.
where to use abstract and where to use specifies like
public private.
Answer Posted / manikandan [ gtec,vellore ]
Encapsulation is used when v need to use a data with the
object access.
Abstraction is used when v need to restrict the end user to
access all process.
| Is This Answer Correct ? | 1 Yes | 10 No |
Post New Answer View All Answers
What is a line break?
What is the benefit of abstract class?
What are the two types of exceptions in java? Which are the differences between them?
What is the tradeoff between using an unordered array versus an ordered array?
What are runtime exceptions?
What does replaceall do in java?
How are the elements of a gridbaglayout organized in java programming?
What is the difference between variable & constant?
Does treeset allow null in java?
What are the four corner stones of oop?
Explain all java features with real time examples
Can we override data members in java?
What is java algorithm?
How do you write a good declaration?
What does the “final” keyword mean in front of a variable? A method? A class?