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 |
Why do we use class in oops?
How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram
Can enum be null?
what is ltti
Why and when is a virtual destructor needed?
why function overloading is not called as pure polymorphism?
What is polymorphism explain its types?
What is difference between pop and oop?
What is the significance of classes in oop?
what is difference b/w object based and object oriented programming language?
18 Answers Chaitanya, College School Exams Tests, Educomp, IBM, Infosys, Telko,
There are 2 classes defined as below public class A { class B b; } public class B { class A a; } compiler gives error. How to fix it?
WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP