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 the important feature of inheritance?
Who invented oop?
What is polymorphism oop?
What is abstraction in oops?
What is ambiguity in inheritance?
What is solid in oops?
What is the advantage of oop over procedural language?
2. Give the different notations for the class.\
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
write a program to find 2^n+1 ?
What is the difference between abstraction and polymorphism?
Which is better struts or spring?
What is abstraction oop?
Why do we use oop?
What does oop mean in snapchat?