Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

abstract means what in Java?

Friends, what is the meaning of abstract in Java?
We see abstract class, abstract method...
What is the word mean abstract?
[141 byte] By [radhika743] at [2007-11-11 10:18:49]
# 1 Re: abstract means what in Java?
HI

We usually write Abstract classes when we want to give some default functinality to all the other classes who are of our type(sub-classes of this abs class) and in most of the cases we write abstract methods in the Abs class to force the concrete class to override the method and provide a business logic for the same.

Let me know if this does not make sense for you.

www.j2eequestions.com (http://www.j2eequestions.com)
jasprit at 2007-11-11 22:31:36 >
# 2 Re: abstract means what in Java?
Abstract means that the method is declared but not defined. A descendant of the parent class with an abstract method must implement that method to make it work.
nspils at 2007-11-11 22:32:41 >
# 3 Re: abstract means what in Java?
Thanks "nspils" and "jasprit" for posting your answers.
radhika743 at 2007-11-11 22:33:40 >