What is the differances between a abstract calss and
interface
Answer Posted / kanan
Abstract class: You can inherit only one class.
Interface: You can inherit more than one interface.
Abstract class: It contains both completed and uncompleted
(abstract) methods.
Interface: It only contains uncompleted methods (methods
without body).
Abstract class: Access modifiers are there for methods and
properties.
Interface: It does not have access modifier for methods or
properties. By default they are public.
Abstract class: Fast
Interface: Require more time to find actual method in classes.
Abstract class: It can contain fields and constants.
Interface: no fields can be defining in interface.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
what are the different types of qualifier in java?
Which type does string inherit from?
What do you mean by overloading?
What are functions in oop?
2. Give the different notations for the class.\
Why is static class not inherited?
Why is polymorphism important in oop?
What are the types of abstraction?
What are the benefits of interface?
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 are the benefits of oop?
What are the 4 main oop principles?
What is inheritance in oop?
Is html an oop?
What is an example of genetic polymorphism?