Quantcast
answersLogoWhite
notificationBell

Top Answer
User Avatar
Wiki User
Answered 2010-02-22 10:23:35

Below is the main difference between the 3 components:

  • Concrete class - Provides implementation for all its methods & also for methods from extended abstract classes or implemented interfaces
  • Abstract class - Does not provide implementation for one or more of its methods
  • Interface - Does not provide implementation for any of its methods
012
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0
User Avatar

Your Answer

Still Have Questions?

Related Questions

What is the difference between a interface and abstract class?

Some difference between an interface and an abstract class are: a. All variables in an interface are public, static and final but that is not the case in abstract classes b. An abstract class can have both abstract and concrete methods but an interface cannot have concrete methods c. An abstract class can extend other classes and implement interfaces, while an interface can only extend other interfaces.


What is difference between Abstract Class and Interface?

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.


What is the difference between an Abstract class and Interface?

We can't instantiate both interfaces and abstract classes.The only one difference between them is that an interface can't contain concrete(fully defined) methods where as an abstract class may contain them.An abstract class not necessarily contain abstract methods. we can make a class as abstract class even it does not has any abstract methods.When there is a need to write both abstract and concrete methods in a single unit we have to use an abstract class instead of an interface since an interface cant contain concrete methods.All the fields(or properties) of an interface are by default 'static final' even when you don't mention explicitly. And all methods are 'public abstract'.But in an abstract class we can have any type of fields and methods.


What is the difference between abstract and interface?

The difference are:An abstract class can have methods that actually have code inside them whereas an Interface cannot (An Interface can be thought of as a 100% pure abstract class)All variables in an Interface are public, static, final whereas that is not the case in Abstract classes


What is the difference between and interface and abstract class?

A more prcise description of difference is as follows.... an interface is a specification of a set of methods that the implementation class must adhere to, while an abstract class is indeed an implementation class albeit a class that is not concrete, i.e., one cannot directly instantiate an abstract class.


What is the difference between abstract and concrete?

I think you are asking the difference between abstract nouns and concrete nouns. A concrete noun is something that can be seen or touched like a cat or a tree. An abstract noun is something more intangible like happiness or peace.


What is similarities between Abstract Class and Interface?

If a class has one abstract method ,the class has to be an abstract class.Methods can be implemented in abstract class.Whereas a interface is like a abstract class...the only difference being that the methods are never implemented in Interface.


What is the Difference between concrete and abstract thinking?

Concrete thinking is considered to be thinking that is proven to be logical and work. Abstract thinking is thinking that is new and innovative.


What is the major difference between an Interface and a Class?

An interface can only have abstract methods or constants in it. A class can have both that and everything else in Java.


How do you write concrete method inside abstract class?

There is no difference with method declaration and implementation between abstract and non-abstract classes. You do the exact same thing when writing a concrete method in either an abstract or non-abstract class.


Difference between interface and abstract class on uml?

In general, the differences are that interface has(1) no fields and(2) no implementation of methodsbut in UML interface may have features (fields), so the difference left is that interface in UML has no implemented methods while abstract class by definition is partially implemented class.


What is difference between abstract class and interface in core java give brief answer with example?

Some differences are:An abstract class can have code for one or more methods but an interface cannotAll variables in an interface are public static and final but in an abstract class it is notAbstract classes are faster than interfaces


What is the difference between a supposition and a suppository?

One is abstract and the other is concrete (not literally, of course).


What is the difference between an interface and an abstract class?

Abstract class is to define "IS_A..." Interface is to define "Behave like ..." (not necessary to be a ...") An abstract class if with all public abstract methods may look just like an interface. An abstract class may also provide some implementation of those APIs (public methods), while an interface is to decouple (separate) the intend from the implementation


What are the differences between an interface and an abstract class?

An interface is like a 100% abstract class. Only abstract methods can go in an interface. In addition, all methods in an abstract class are public and abstract by default. You "extend" an interface using the keyword implements. You can implement multiple interfaces, but you have to extend only one class. An interface can have only constants. This means no instance variables.As for an abstract class, you can put both abstract and concrete methods in an abstract class. It can have instance variables, but you can only extend one abstract class.Sun recommends using abstract and concrete class extension to signify what a class is, with an example in the following inheritance tree:Object||-Person||-Programmer||-JavaProgrammerAn interface is for signifying what jobs a class can do, like a Message class implementing a Sendable interface. Also, class names should be nouns and interface names should be adjectives, but conventions vary widely among programmers.


What is the difference between concrete imagery and abstract imagery?

concrete imagery is where the implicit reticence of an empirical verb past/present participle of a understandable colloquial is undoubtedly infallible. abstract is the contrary.


What is difference between concrete class and abstract class?

In general programming terms, a concrete class is one which can be instantiated, while an abstract class can only be instantiated via a fully implemented subclass.


What is the difference between an abstract and a conclusion?

difference between abstract and conclusion


What is the difference between a Link and an Interface?

The difference between a link and an interface is the protocol used.


What is the difference between abstract classes and interfaces?

Comparison between an Abstract Class and an Interface:While an abstract class can define both abstract and non-abstract methods, an interface can have only abstract methods. Another way interfaces differ from abstract classes is that interfaces have very little flexibility in how the methods and variables defined in the interface are declared. These rules are strict:• All interface methods are implicitly public and abstract. In other words, you do not need to actually type the public or abstract modifiers in the method declaration, but the method is still always public and abstract. (You can use any kind of modifiers in the Abstract class)• All variables defined in an interface must be public, static, and final-in other words, interfaces can declare only constants, not instance variables.• Interface methods must not be static.• Because interface methods are abstract, they cannot be marked final, strictfp, or native. (More on these modifiers later.)• An interface can extend one or more other interfaces.• An interface cannot extend anything but another interface.• An interface cannot implement another interface or class.• An interface must be declared with the keyword interface.You must remember that all interface methods are public and abstract regardless of what you see in the interface definition.


What is the difference between an abstract class and an interface?

Abstract classes and Interfaces are nearly similar with both having only method declarations and no implementations thereby giving their child classes the flexibility to implement them the way they want. Difference: While an abstract class can have method implementations also, an interface can have only declarations. All methods in an interface are only declared but in an abstract class you can declare as well as implement a few methods also.


What is the difference between an instance and a pattern?

An instance is a "concrete" thing: an occurrence of an abstract data model. A pattern is an abstract concept of a reusable solution to a common problem.


Is pilot a common noun or an abstract noun?

The word pilot is a common, concrete noun. It is not an abstract noun.The distinctions between types of nouns are common or proper, and concrete or abstract. Common nouns can be abstract or concrete, and proper nouns can be abstract or concrete.


Abstract class vs interface?

Comparison between an Abstract Class and an Interface:While an abstract class can define both abstract and non-abstract methods, an interface can have only abstract methods. Another way interfaces differ from abstract classes is that interfaces have very little flexibility in how the methods and variables defined in the interface are declared. These rules are strict:


What is the difference bitween abstract and summary?

The difference between abstract and summary is that an abstract is a short from of a summary.


Still have questions?

Trending Questions
Who was Anna Kreisling? Asked By Wiki User
Unanswered Questions
Why we require Microsoft paint? Asked By Wiki User