abstract class

why we can not create object of an abstract class.
[57 byte] By [dhiru123a] at [2007-11-27 1:50:08]
# 1
http://java.sun.com/docs/books/tutorial/java/IandI/abstract.html
ChuckBinga at 2007-7-12 1:16:24 > top of Java-index,Java Essentials,Java Programming...
# 2
hello,In this link only information about what is abstruct class and diffrence between abscrtuct class and infterface.I want ans with brief explanation.Why we can not create object of abstract class.
dhiru123a at 2007-7-12 1:16:24 > top of Java-index,Java Essentials,Java Programming...
# 3

> hello,

>

> In this link only information about what is

> abstruct class and diffrence between abscrtuct class

> and infterface.

>

> I want ans with brief explanation.

> Why we can not create object of abstract class.

short answer: because the language specifications say so

why do they say that, though?

because it is an abstract entity, it represents a conceptual, rather than concrete, object. for instance, what noise does animal make? it doesn't, because "animal" is an abstraction. there is no such actual tangible thing in this world that is merely an "animal", it's a concept. cats make noises, they being specific subclasses of "animal". dogs make noises, they also being specific subclasses of "animal". so we can point to a dog, and to a cat, and say "look at that dog, look at that cat". or we can bundle them together and say "look at those animals", but you cannot show me something that is just an animal, and not any specific type of animal

that's why abstract classes can't be instantiated, because (when used correctly) it makes no sense for there to be an instance of it

georgemca at 2007-7-12 1:16:24 > top of Java-index,Java Essentials,Java Programming...
# 4
thanks i am satisfy with your ans
dhiru123a at 2007-7-12 1:16:24 > top of Java-index,Java Essentials,Java Programming...
# 5
How many dodos were born last year?
paulcwa at 2007-7-12 1:16:24 > top of Java-index,Java Essentials,Java Programming...
# 6
> How many dodos were born last year?[url= http://en.wikipedia.org/wiki/Fried_plantain]too many to count[/url]
georgemca at 2007-7-12 1:16:24 > top of Java-index,Java Essentials,Java Programming...