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
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
Is string is a class in java?
what are the high-level thread states? : Java thread
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
What are daemon Threads in java?
What is the driver class?
What does it mean that a class or member is final?
Which eclipse is best for java?
Difference between notify() method and notifyall() method in java?
What is the difference between jfc & wfc?
What are the advantages of compiled language?
What is the nested interface?
Can you instantiate the math class in Java?
Why is boolean important?
Explain the importance of finally block in java?