wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes What is the use of Creating constructor for Abstarct Classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What is the use of Creating constructor for Abstarct Classes" Watch "What is the use of Creating constructor for Abstarct Classes" New topic
Author

What is the use of Creating constructor for Abstarct Classes

shivakumar paka
Greenhorn

Joined: Mar 05, 2008
Posts: 15
Any one please tell me what is the use of creating constructor for abstract class.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi,

1. you can not instantiate abstract class.

2.when you instantiate a class(which is extends the Abstract class)..constructor calls it super class constructor .. that is the reason abstract class has constructor....

Hope it will help you

Thanks & Regards,
seetharaman.v
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
Hello ShivKumar,

Welcome to the JavaRanch.
This topic will definitely clear your confusion.
I suggest you to search little bit into the old topics. It is very likely to get solution to your problem.

[Corrected the link]
[ May 26, 2008: Message edited by: Vishal Pandya ]
 
Don't get me started about those stupid light bulbs.
 
subject: What is the use of Creating constructor for Abstarct Classes
 
Similar Threads
constructors...
Benefits of inner classes in java
constructor
abstract class
Abstract classes