what are abstract classes and how they impliment , with
example
Answer Posted / manoj kumar
abstract class is a class which may or may not contain
abstract method.
abstract class can,t be instantiated i.e. we can,t
create object of an abstract class.
abstract class can be subclasses .
abstract class is a class which is declared abstract.
if any class contain abstract method then it can be
declared abstract.
example
abstract class{
abstract public void display();//abstract method
}
abstract method is method which is declared but not
implemented i.e. without braces followed by semicolon.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What is inheritance in oop?
What is an advantage of polymorphism?
What does and I oop mean?
Why we use classes in oop?
What is polymorphism programming?
#include
What is encapsulation in ict?
What is multilevel inheritance in oop?
what is different between oops and c++
What is difference between polymorphism and inheritance?
Is react oop?
What is balance factor?
What is for loop and its syntax?
Why do we use inheritance?
What is difference between pop and oop?