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 |
What is pointer in oop?
What is a superclass in oop?
what is the function of 'this' operator ?
What is the difference between inheritance and polymorphism?
Which type does string inherit from?
WHY FUCTION OVERLOADING DOSENOT RETURN A RETEN TYPE
What is polymorphism? Explain with an example.
what are the realtime excercises in C++?
write a progra in c++ using class & object to find out wheather a given no. is prim or not.
How is the using() pattern useful? What is IDisposable? How does it support deterministic finalization?
What do you mean by inheritance?
how do you handle yourself when you feel the wald is aganist you