English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

An abstract class is one that can ONLY be used by inheriting from it e.g. Abstract Class Mammal ; actual classes Dog or Cat.An interface is a class that is just the function and procedure definitions and usually has an 'implements' clause which points to the 'real' class that it will use when it is actually called.This is a way of maintaining version compatibility , even though you may change the actual class 'underneath'.

2006-07-04 01:40:14 · answer #1 · answered by howlingengines 4 · 0 0

interface vs abstract class
When should you use an abstract class, when an interface, when both? Interfaces and abstract classes seem superficially to provide almost the same capability. How do you decide which to use?

See the source page you can under stand the difference othere wise mail me at garavapalli2k@yahoo.com

2006-07-04 08:45:15 · answer #2 · answered by Guru 3 · 0 0

fedest.com, questions and answers