What is differance between Abstract and Interface

Answers were Sorted based on User's Feedback



What is differance between Abstract and Interface..

Answer / jasbir singh

An abstract class is a class with at least one function
without definitions.

An Interface is a class which only contains function
declarations, all the functions are specifically and
separately defined later. And you can't create objects of
these classes.

Is This Answer Correct ?    12 Yes 1 No

What is differance between Abstract and Interface..

Answer / poorna chandar rao

diffrence bettwen the abstract class and interfaces

abstract class is having abstarct methods and concrete
methods abstarct class as compulosry having subclass for the
implementation abstarct methods and abstarct does not
support multiple inheritence
because one subclass extend the abstract class their is no
scope for extends for another class because it is not
support for the multiple inheritence
ex 1: abstract class one
2 class two extends one extend three (not valid)

but interface having only method signature in the interface
their is concrete method and it supports the multiple
inhirtence because

ex: interface one
class two implements one extends three(valid)
onc class implemens the interface and extends to another
class that is support the multiple inhertince

Is This Answer Correct ?    3 Yes 0 No

What is differance between Abstract and Interface..

Answer / pankaj kumar upadhyay

abstract class contain an abstract function as well asather functions and variableand it must be defind in derived class and here we no create an object,
ex:
an SBI bank which follow the RBI Rules including it own rules.
while an interface class can contain only an abstract function, not any other functions or variables butit also must be defined in derive class .here also we dont create ao object.
ex:
an RBI follow only itself rules

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

What is a macro? And how is a macro same as a template?

4 Answers  


if u write a class do u write Assignment operator and copy constructor

1 Answers   Siemens,


When you define a integer it gets stored in which data structure?(Stack or a heap)

2 Answers   emc2,


How many types of access specifier in c# and vb.net?

1 Answers   Infosys,


How to use CMutex, CSemaphore in VC++ MFC

0 Answers   Persistent, TCS,


what is static?

4 Answers  


i^=j; j^=i; i^=j; value of i,j

1 Answers  


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

0 Answers  


What is overriding in oops?

0 Answers  


What is the difference between a constructor and a destructor?

0 Answers  


What is public, protected, private?

6 Answers   IBS, Satyam,


Difference between realloc() and free?

9 Answers   HP,


Categories