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 a class in oop?
• What are the desirable attributes for memory managment?
What is the full form of oops?
What does sksksk mean in text slang?
What are the data types in oop?
Can main method override?
What is polymorphism what are the different types of polymorphism?
What is difference between inheritance and polymorphism?
What are the 4 main oop principles?
What is the importance of oop?
Can we override main method?
Why do we use oop?
How to hide the base class functionality in Inheritance?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
write a program that takes input in digits and display the result in words from 1 to 1000