Total members 11893 |It is currently Tue Nov 05, 2024 6:38 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





Q: What is the difference between an Interface and an Abstract class?


A: An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface has all public members and no implementation. An abstract class is a class which may have the usual flavors of class members (private, protected, etc.), but has some abstract methods.



_________________
Please recommend my post if you found it helpful


Author:
Newbie
User avatar Posts: 14
Have thanks: 0 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : The difference between an Interface and an Abstract class
 java abstract class,concrete class and interface     -  
 What is an Abstract Class? !!!     -  
 make abstract class     -  
 how to Define abstract class in php     -  
 why cant instantiate an abstract class     -  
 Is garbageCollector a Class or interface?     -  
 Interface Collection and Class Collection     -  
 difference between a static and a non-static inner class     -  
 Abstract Classes in jsp     -  
 What is an abstract method     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com