what are abstract classes and how they impliment , with
example
Answers were Sorted based on User's Feedback
Answer / 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 |
A class with atleast one pure virtual function is called
abstract class.It cant be instatiated.It can be used as a
base class for other classes. The class derived from an
abstract base class can be instantiated,provided it should
implement the abstract base class pure virtual function.
| Is This Answer Correct ? | 7 Yes | 0 No |
Explain virtual inheritance?
Program to open a file with First argument
What is the difference between procedural programming and oops?
Can we have inheritance without polymorphism?
What is differance between Abstract and Interface
Can we have a private constructor ?
12 Answers HSBC, Ness Technologies, TCS, Wipro,
What is the difference between inheritance and polymorphism?
What is meant by multiple inheritance?
How to use CMutex, CSemaphore in VC++ MFC
what is the difference between containership and inheritence?
what is oops
What is debug class?what is trace class? What differences are between them? With examples.