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
Can a main method be overloaded?
What is the purpose of the finally clause of a try-catch-finally statement in java programming?
How do you make an arraylist empty in java?
What is a protected void?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
What is the difference between the boolean & operator and the && operator in java programming?
Which list is sorted in java?
What is a generic code?
What is a singleton class in Java?
How can an object be unreferenced?
Is string a wrapper class?
Can we extend singleton class?
How to split a string in java?
what are the disadvantages of indexes in oracle?
What are "class access modifiers" in Java?