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 abstraction in oop?
What is overriding vs overloading?
What is the renewal class?
Why do pointers exist?
Which language is not a true object oriented programming language?
officer say me - i am offered to a smoking , then what can you say
What is difference between polymorphism and inheritance?
What is oops with example?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is inheritance write a program to show use of inheritance?
Explain virtual inheritance?
What is the important feature of inheritance?
What is stream in oop?
What is abstraction example?
What are main features of oop?