what are the oops concept in java explain with real time
examples
Answer Posted / madhu
Inheritance defining a new class by using the member of existing class..e.g main class vehicle
sub classes can extend vehicle like car,bike,auto cos car, bike ,auto are belongs to vehicle so they can extend using vehicle..
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
When does a class need a virtual destructor?
Explain about field hiding in java?
What is the benefit of inner / nested classes ?
define polymorphism in java
Is c better than java?
Why java is object oriented?
What are the ways to instantiate the class class?
Can a class be defined inside an interface?
Can constructor be synchronized?
Can a string be null?
What is null in java?
When does an object becomes eligible for garbage collection in java?
Explain the difference between private, public, package and protected in java?
What is blank final variable?
What is final access modifier in java?