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 are different oops concepts?
#include
Why is polymorphism used?
What are the 3 principles of oop?
What is the full form of oops?
How to call a non virtual function in the derived class by using base class pointer
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is the significance of classes in oop?
What is encapsulation in oops?
What are the three parts of a simple empty class?
What is this pointer in oop?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
Can we define a class within the interface?
officer say me - i am offered to a smoking , then what can you say