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 difference between Abstract and Interface?

Answer Posted / skpotla

my name is skpotla.
the following answer is the exact one.

1.An abstract class is a class with zero or more abstract
methods.
2.Abstract class contains instance variables, concrete
methods in addition to abstract methods.
3.Both abstract class and abstract methods should be
declared as abstract.
4.We can not create and object to the abstract class.
5.We can create a reference to the abstract class type.
6.If you extends the abstract class in a sub class you have
to implement all the methods of the abstract class.
7.If u miss any abstract methods in the sub class then the
sub class should be declared as an abstract class.
8. A class can not be both abstract and final.

1.Interface is a specification of a method prototype.
2.Interface methods are by default abstract and public.
3.Interface contains variables which are by default
public,static and final.
4.Interface contains zero or more abstract methods.
5.We can not create an object to an interface.
6.We can create a reference to the interface type.
7.If we implement an interface we have to implement all its
methods in our sub class.
8. If any one miss then the class should be declared as an
abstract class.
9.Interface can not implements an other interface.
10.Interface can extends the other interface.
11.It is possible to write a class with in an interface.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write code for inserting and updating recoards in sql server database using connected architecture & records shoulds displayed in grid view ( use c# )

2443


Why we use get set in c#?

900


Explain how to implement an object pool in c#.net

915


Distinguish between system.string and system.text.stringbuilder classes?

897


If casting fails what type of exception is thrown?

835


What is difference between managed and unmanaged code?

957


what is IDisposal interface

1114


Can an abstract class have a constructor c#?

879


What do constructors do in c#?

906


Why reflection is used in c#?

906


What is the difference between virtual method and abstract method?

941


Is c# dictionary a hash table?

862


What is access modifier in c#?

866


What is multithreading? What are the problems that comes with multithreading and how to manage them?

945


In which situation(s), the use of "Delegate" is a good idea?

934