Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the differances between a abstract calss and
interface

Answers were Sorted based on User's Feedback



What is the differances between a abstract calss and interface..

Answer / maria alex

An abstract class holds both method prototpypes and method
definitions also...But it is not in the case of
interface..It can contain only protypes.. It should be
defined only where it is implemented...

Is This Answer Correct ?    20 Yes 3 No

What is the differances between a abstract calss and interface..

Answer / abhijit

Abstract base classes can have data members but not interfaces.

Abstract base classes have private access specifier by
default while that of interfaces is public

Is This Answer Correct ?    8 Yes 0 No

What is the differances between a abstract calss and interface..

Answer / porchelvi .a

ABTRACT CLASS:
-------------
• It can not be instantiated

• It allow us to specify all access modifier except
Private

• A class inheriting this must implement all of its
abstract method


• A class can inherit only one abstract class at a
time.

• Abstract class can add more functionality with out
destroying child classes that were using old version.


• We can declare the following
1. Fields
2. Constructors
3. Static Constructors
4. Static Functions
5. Concrete Functions

INTERFACE :
---------

• It can not be instantiated

• It allows only public Access modifier

• A class implementing interface must provide body
for its entire member.



• A class can implement more than one interface at a
time.

• Adding of additional functionality will have an
effect on its child class due to the necessary
implementation of interface methods.

• We can not declare the following
1. Fields
2. Constructors
3. Static Constructors
4. Static Functions
5. Concrete Functions

Is This Answer Correct ?    4 Yes 0 No

What is the differances between a abstract calss and interface..

Answer / rck

Abstract class is the class which may contain pure virtual
functions as well as normal functions where as interface
may only contain pure virtual functions.

Is This Answer Correct ?    3 Yes 0 No

What is the differances between a abstract calss and interface..

Answer / kanan

Abstract class: You can inherit only one class.
Interface: You can inherit more than one interface.

Abstract class: It contains both completed and uncompleted
(abstract) methods.
Interface: It only contains uncompleted methods (methods
without body).

Abstract class: Access modifiers are there for methods and
properties.
Interface: It does not have access modifier for methods or
properties. By default they are public.

Abstract class: Fast
Interface: Require more time to find actual method in classes.

Abstract class: It can contain fields and constants.
Interface: no fields can be defining in interface.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More OOPS Interview Questions

Why do while loop is used?

0 Answers  


i hav very low percentage in 12th n BSCwhich is around 50.......coz it was just imposed on me 2 b a science graduate,nw m doin MCA n hav aggregate 74% ....what shud i answer if company's HR ask me about dis much low previous percentage??????

3 Answers   Infosys,


what is the need of abstraction? what is abstraction?what is the abstraction for stack?

8 Answers   CTS, Verizon,


//what is wrong with the programme?? #include<iostream.h> template <class first> class dd { first i; public: void set(); void print(); }; void dd< first>:: set() { cin>>i; } void dd< first>::print() { cout<<"\n"<<i; } void main() { dd <char>g; g.set(); g.print(); }

1 Answers  


What is DeadlyDiamondDeathProblem ?

1 Answers  


explain defference between structure and class with example

2 Answers  


What is abstraction example?

0 Answers  


Write a program in c++ to read two floating point numbers and find their sum and average.

2 Answers  


Write on signed and unsigned integers and give three (3) examples each

1 Answers  


which are the 4 members functions in c++ objects that can either be declared explicitly by programmer or implementation if nt available.

4 Answers  


Which language is pure oop?

0 Answers  


What is the diamond problem in inheritance?

0 Answers  


Categories