what is meant by Encapsulation?Explain with an example?
Answer Posted / rekha
ENCAPSULATION MEANS WRAPPING DATA MEMBERS & MEMBER FUNCTION
IN A SINGLE UNIT.EXA:-CLASS
| Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
I run a web server. Am I at risk? : java security
How do you create a jar file?
Why java?
What is scrollable resultset in java?
Can an application have multiple classes having main method?
What is the content reside in Use case Document?
Why do we only use the main method to start a program?
In an htm form i have a button which makes us to open another page in 15sec.how will you do that?
What is numberformatexception in java?
What is ehcache in java?
What is entitymanager in java?
there are 67 seats in train . there are only 5 seats in a row and in last row there are only 2 seats. One person can reseve only 5 seat at a time. If person reserving seat , the care is atken that he may get all in row. if seats are not available in row then the arrangement is so that person group get nearby seats. the following class is given public class seat { char name; int seat; boolean isSeatempty } 1.Draw require class digram and object diagram. 2.Write function seatallot(int noofperson) to allocate seat with seat nuber printed for the each name.
How do I know if I have jre or jdk?
Are jvm’s platform independent?
What is the use of lambda functions?