File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes can abstract class has a constructor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "can abstract class has a constructor" Watch "can abstract class has a constructor" New topic
Author

can abstract class has a constructor

Venkat Ramsimha
Ranch Hand

Joined: Dec 28, 2004
Posts: 127
Hi All,
Every class, including abstract classes, must have a constructor.
is the above true?if so can any body provide with a program to justify?

Thanks
venkat
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
"venkatramsimha", please read Mark's post in this thread of yours.

Venkat Ramsimha - is probably what you need to put in your profile as your displayed name.

(NR)
[ May 10, 2005: Message edited by: Barry Gaunt ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Jas Oberai
Ranch Hand

Joined: Jan 16, 2005
Posts: 231
Hi VenkatramSimha,
You are posting so many messages and receiving replies as well.But,don't you read them carefully..the moderators are repeatedly requesting you to change your name as per javaranch policies.Please,do that urgently otherwise they would chop off your name from this wonderful site,
thanks....just a thought for you!!!


SCJP 1.4 (88%)<br />SCWCD 1.4 (88%)
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

venkatramsimha,

You know I gave you two days, but I am thinking of suspending your account today. Because it is obvious that you are just ignoring us when we ask you to change your display name to follow the JavaRanch guidelines.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
An abstract class is to extended to a concrete class. That is, it will be a base class of some other class. The subclass' constructor will need to call the base class constructor (an explicity declared one or a default constructor provided by the compiler).

From that you should be able to produce your own coding example.
Venkat Ramsimha
Ranch Hand

Joined: Dec 28, 2004
Posts: 127
Mark
Really i tried to change my display name but iam unable to change.
can u please provide the link where i can change my name.
really i tried a lot mark but iam unable to change.anyway please provide the link.

anyway i apologize for my mistake

thanks
venkat
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Go into "My Profile", then into "View/Update Profile", and the change the Publicly Displayed Name field to: Venkat Ramsimha (with the space between the two names). Press "Update Profile".

That should do the trick...
[ May 10, 2005: Message edited by: Barry Gaunt ]
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Tony Morris
Ranch Hand

Joined: Sep 24, 2003
Posts: 1608
An abstract class is erroneously used to extends any class, be it abstract or not. Correct design (off topic, sorry) mandates that all classes are declared final, and therefore, not abstract (since they are mutually exclusive).


Tony Morris
Java Q&A (FAQ, Trivia)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can abstract class has a constructor