aspose file tools*
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
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 ]
 
jQuery in Action, 2nd edition
 
subject: What is the use of Creating constructor for Abstarct Classes