what are abstract classes and how they impliment , with
example

Answers were Sorted based on User's Feedback



what are abstract classes and how they impliment , with example..

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

what are abstract classes and how they impliment , with example..

Answer / rdl

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

Post New Answer

More OOPS Interview Questions

What normal C constructs work differently in C++?

2 Answers  


What are the 4 main oop principles?

0 Answers  


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

0 Answers  


What are the important components of cohesion?

0 Answers  


the difference between new and malloc

5 Answers   Siemens,






what is virtual function?

3 Answers  


What is the fundamental idea of oop?

0 Answers  


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

0 Answers  


what does exactly the linker do?

1 Answers  


What is Virtual Keyword?

9 Answers   IBM, NA,


Out of 4 concepts, which 3 C++ Follow?

1 Answers   TCS,


When is an object created and what is its lifetime?

4 Answers   IBM,


Categories