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 is a superclass in oop?
Why is oop useful?
What is oops concept with example?
Is react oop?
#include
What is the full form of oops?
What is encapsulation with example?
What is an advantage of polymorphism?
What is object and example?
What is oops and why we use oops?
Can private class be inherited?
Whats oop mean?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is class in oop with example?
Is html an oop?