This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Abstract classes  RSS feed

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone!

Could someone please explain what an abstract class is and what it's used for? I'm having trouble grasping the concept. I've also been unable to find anything online that is helpful to me personally. If think something might help, please link!

Many Thanks
 
Ranch Hand
Posts: 492
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi check this link Abstract class
 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pillay,
Abstract class are those class which may contain abstarct methods, and abstract methods are those which don't have definition.
example-

Since abstract class is partially implemented so it can't be instantiated.
In real world it is used for giving default behavior to the implememnting class.
Note that it's not necessary for an abstract class to have abstract method.

If you are newbie to java just start with Head first, then go ahead with "thinking in java" by bruce eckel and scjp exam study guide by kathy.
For any other help just send me private messages, i'll defietly help you out.

[edit]Add code tags. CR[/edit]
[ October 14, 2008: Message edited by: Campbell Ritchie ]
 
Marshal
Posts: 60194
188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use the code button when posting code; you can see how much better it looks with the indentation.
And please keep all discussion on the forum; everybody can then learn from it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!