What are Encapsulation, Polymorphism and Inheritance?
Answer Posted / mohankumar
Encapsulation is also known as information hiding,it is to
protect data from the client using the classes but still
allowing the client to access the data,but do not modifying it.
Polymorphism ability to perform differently on different forms.
Inheritance means one base class derived from one or more
classes.
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
What is a "pure virtual" member function?
What is a buffer in computer?
How to change the priority of thread or how to set the priority of thread?
What is java instanceof operator?
Explain the selection sort algorithm and state its time complexity?
What is return null in java?
What is variable explain with example?
What is native method in java?
What is finally block?
What are data structures in java?
What is logical variable?
What is a prefix function.write down a code to compute prefix function.
What is skeleton and stub?
What is the purpose of the return statement?