What are the advantages of inheritance?
Answer Posted / haneet kaur
1. Reuse of existing code and program functionality: the program does not have to write and re-write the same code for logically same problem.
2. Less labour intensive: the programmers do not have to rewrite the same long similar program just because the application to be developed has slightly different requirements.
3. Well organised. the object are well organised in a way that they follow some hierarchy.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Why is there no multiple inheritance?
Can we define a class within the interface?
When not to use object oriented programming?
What is polymorphism and example?
Which is better struts or spring?
can inline function declare in private part of class?
What is a class oop?
Are polymorphisms mutations?
What is static modifier?
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy
What is overriding in oops?
What is encapsulation oop?
How is class defined?
Why we use classes in oop?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box