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
Why does java have two ways to create child threads? Which way is better?
Can a final method be overloaded?
What is java util list?
What happens when a thrown exception is not handled?
How can we make string upper case or lower case?
What are different type of exceptions in java?
What are "methods" and "fields"?
What is the access scope of a protected method?
Why null value is used in string?
If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?
What is the purpose of finalization in java programming?
What are the 6 mandatory procedures for iso 9001?
What is a java list?
What is the difference between a break statement and a continue statement?
Which class contains a method: cloneable or object?