Answer Posted / poorna chandar rao
diffrence bettwen the abstract class and interfaces
abstract class is having abstarct methods and concrete
methods abstarct class as compulosry having subclass for the
implementation abstarct methods and abstarct does not
support multiple inheritence
because one subclass extend the abstract class their is no
scope for extends for another class because it is not
support for the multiple inheritence
ex 1: abstract class one
2 class two extends one extend three (not valid)
but interface having only method signature in the interface
their is concrete method and it supports the multiple
inhirtence because
ex: interface one
class two implements one extends three(valid)
onc class implemens the interface and extends to another
class that is support the multiple inhertince
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are the important components of cohesion?
Is oop better than procedural?
What is property in oops?
What does enum stand for?
What is abstract class in oop?
What is inheritance write a program to show use of inheritance?
What are the types of abstraction?
What is class and object in oops?
How can you overcome the diamond problem in inheritance?
What is polymorphism and why is it important?
What is meant by oops concept?
#include
What is object in oop with example?
What are properties in oop?
What is object and example?