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...


Difference between abstract class and interface

Answers were Sorted based on User's Feedback



Difference between abstract class and interface..

Answer / shreeram sahu

1.abstract class contain abstract and non abstract methods
but interface contain only abstract methods.
2.abstract method can be declared in public or protected
section. but all components of interface by default are
public.
3.a class can inherit only one abstract class but a class
can implement any no of interfaces.
4.abstract class components are directly reffered in
subclass.butinterface components must be prefixed with the
name of the interface.

Is This Answer Correct ?    1 Yes 0 No

Difference between abstract class and interface..

Answer / nandhini

ABSTRACT CLASS IS HAVING EXTENDS, IT IS USING IN PRIVATE & PROTECTED.

INTERFACE CLASS IS HAVING IMPLEMENTED, JAVA CLASS IMPLEMENT MULTI INTERFACE,IT IS USING PUBLIC.

Is This Answer Correct ?    1 Yes 0 No

Difference between abstract class and interface..

Answer / deepak baroliya

1.java abstract class is faster than the interface.
2.all interfaces inherits the non final method of the object class.
3.interface are designed to support dynamic method resolution.

Is This Answer Correct ?    1 Yes 0 No

Difference between abstract class and interface..

Answer / ved

An abstract class may contain complete or incomplete method.
Interface can contain only the signature of a method but no
body. Thus an abstract class can implement methods but an
interface can not implement method.

Is This Answer Correct ?    0 Yes 0 No

Difference between abstract class and interface..

Answer / siva choudary

abstract class does not multiple inheritane

interface supports declarative multiple inheritance

Is This Answer Correct ?    1 Yes 1 No

Difference between abstract class and interface..

Answer / tevendra singh pardhi(balaghat

Abstract Class:
(1)it contains both abstract methods and non abstract
methods
(2) object can't be created just through reference we are
calling all the methods
(3) it is implemented by subclass i.e which class is
extended from this
abstract class contains only nonabstract this situation
also code will compile fine but problem at runtime
abstract can't be declared with Final Synchronized Native
just your requirements you implement some methods in the
abstract class
this class also contain Constructor


Interface contains all abstract methods
all methods compulsory implemented by particular class
interface does not contain Constructor

Is This Answer Correct ?    0 Yes 0 No

Difference between abstract class and interface..

Answer / jenish gandhi

All the methods declared inside an Interface are abstract.
Where as abstract class must have at least one abstract
method and others may be concrete or abstract. In Interface
we need not use the keyword abstract for the methods.

Is This Answer Correct ?    0 Yes 0 No

Difference between abstract class and interface..

Answer / ravi kant

abstraction mechanism provides a way to manage the system components and there corresponding interaction without considering the details of building those components and, interface is possible in some of the languages where multiple inheritance can't be used.or
interface is a collection of method declaration and constants that one or more classes of objects will use.Interface definition is same as class except that it consists of the method that are declared have have the parameter list.

Is This Answer Correct ?    0 Yes 0 No

Difference between abstract class and interface..

Answer / gurvinder kaur

1.In interfaces,keyword abstract is necessary.
2.in interfaces all functions should be abstract but in
abstract at least 1 function should be abstract.
3.in interfaces there is no inheritance but it can be in
abstract classes

Is This Answer Correct ?    0 Yes 0 No

Difference between abstract class and interface..

Answer / vikas kaundal

1.we never pass object in abstract class only inherit the
abstract class and in which pass the references only

interface
1.in which declare only member.
2.we can implement the multiple interface.
3. its used only standlizition.
4.we can inherit the interface

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net AllOther Interview Questions

deference between display and visibility property of CSS

0 Answers   PCS, Prithvi,


Explain different pipelining hazards and how are they eliminated? : .NET Architecture

0 Answers  


What is the purpose of hard disk? : Dot net architecture

0 Answers  


What is the difference between .net mobile pages and ordinary .net web page? : Microsoft dot net mobile

0 Answers  


Explain what does the term "green architecture" mean? : Dot net architecture

0 Answers  


How do I prevent concurrent access to my data?

0 Answers  


What is the difference between primary & secondary storage device? : Dot net architecture

0 Answers  


Can you explain the difference between an ADO.NET Dataset and ADO Recordset?

2 Answers  


how we can fire event in databound column in datagrid without using button?

0 Answers   Tech Mahindra,


Session State and can i store desirialized object in state server, if yes how and if not why.

0 Answers   PCS,


how to change the application name?

0 Answers   Six Sigma,


What is abstact class? in which scinario we can use abstact class?

4 Answers   iGate,


Categories