what are the oops concept in java explain with real time
examples
Answer Posted / niventh mca
1,class
2,encapsulation
3,polymorphism
4,inheritance
5,Abstraction
class
collection of attributes is called class
Real time example......human body
encapsulation
To encapsulate the some methods,operations in one
class is called the encapsulation
Real time example...... capsules
polymorphism
To ability to take more than one form
Real time example...... xerox machine
inheritance
one class properties occur from another class properties
Real time example......land line...will phone....cellphone
2g....3g....
Is This Answer Correct ? | 76 Yes | 34 No |
Post New Answer View All Answers
What are the new features in java 8? Explain
Which of the following is not an isolation level in the JDBC
How to set the permissions to a file in java?
What is early binding and late binding in java?
Which class is the superclass for all the classes?
What is class forname?
What are the differences between abstract class and interface?
Write a program to check for a prime number in java?
What is covariant return type?
How would overload a function based on return type?
What are the different types of java?
What is communist flag?
Is it possible to compare various strings with the help of == operator? What are the risks involved?
Explain the difference between transient and volatile in java?
What is quick sort in java?