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

Answer Posted / venkataramana

A method with method body is called "Concrete method or
Complete method".
A method without method body is called as "Abstract Method".

Abstract Class :
----------------
1.An abstract class is a class which contains 0 or more
abstract methods.
2.An abstract class can have ,
* Instance Variables
* Complete Methods
* Abstract Methods
3.When an abstract class is written, it is the duty of the
programmer to provide sub classes to it.
4.We cannot create an object to abstract class.
5.But we can create a reference to the abstract class.
6.we cannot declare a class as both abstract and final.

Interfaces:
-----------
1.An interface is a specification of method prototypes.
2.An interface contains only "Abstract Methods".
3.An interface contains Constants
4.All the methods of an interface can be "abstract and
final" by default.
5.We cannot create an object to abstract class.
6.But we can create a reference to the abstract class.
7.An interface is written , when the programmer wants to
leave the implementation to the thid party vendors.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about code access security?

951


6. Wcf- what is SOA

2300


which is the institute in hyderabad for providing the live project industry training

2756


Explain the difference between inprocess vs out process session state : Dot net architecture

1024


Different types of authentication modes in .net framework ?

948


What is an interrupt? : .NET Architecture

853


How resource files are used in .net?

994


Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form. What is the exact procedure on hardware that converts the ascii value to binary? : .NET Architecture

842


Define dma? : Dot net architecture

935


difference between Response.write,server.transfer and also which one is used when ?

1877


What is an interrupt? : Dot net architecture

921


How do I prevent concurrent access to my data?

997


.Net Frame work arch?

2000


What is ILDASM ?

1073


Explain the purpose of cache? : Dot net architecture

849