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 |
wht is major diff b/w c and c++?
what uses of c++ language?
Why do while loop is used?
Why do we use oops?
What are oops functions?
Why do we use class in oops?
Can we create object of interface?
how to create thread in java?
17 Answers IBM, Infosys, Wipro,
What is constructor overloading in oop?
i^=j; j^=i; i^=j; value of i,j
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 the difference between ERROR and EXCEPTION?