What is abstrac class?where is it use?
Answers were Sorted based on User's Feedback
Answer / gp
Class which cannot be initiated is an abstract class.
You can make a class abstract by declaring a pure virtual method inside the class. For example:
class base
{
void func()=0;
};
void main()
{
base b;
}
Now you cannot instantiate base class.
The class which inherits this base class will also become abstract unless you define a body of the func() method in inherited class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vijaya lakshmi
abstrac class always said to algorithm. Bacause you
ara writing program before explain a program in algorithm
| Is This Answer Correct ? | 0 Yes | 4 No |
When is an object created and what is its lifetime?
What is overriding in oop?
Name an advantage of array over linked list?
24 Answers GML, IBM, Software Solutions,
What is protected in oop?
What makes a language oop?
difference between static and non-static variables?
How do you answer polymorphism?
What does enum stand for?
what is polymorphism?
What is the differances between a abstract calss and interface
What is the main feature of oop?
There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?