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
Can we declare a static variable inside a method?
What is the use of a conditional inclusion statement in Java ?
What is private protected in java?
When should you make a function static?
What do you mean by multithreaded program?
What exceptions occur during serialization?
Can a abstract class be declared final?
What are the two ways of implementing multi-threading in java?
a thread is runnable, how does that work? : Java thread
What is an anonymous class in java?
Can a class be declared as protected?
What happens when a thread cannot acquire a lock on an object in java programming?
What are alternatives to java serialization?
Explain about main thread in java?
What is the role of the java.rmi.naming class?