Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Java only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Java
Does abstract class has a constructor
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
aswal
New Member
Join Date:
Aug 2013
Posts:
38
#1
Does abstract class has a constructor
Jan 2 '16, 09:45 AM
Does abstract class has a constructor.
If yes then why can't we instantiate it
Vikas Rana
New Member
Join Date:
Jan 2016
Posts:
3
#2
Jan 2 '16, 09:56 AM
Yes abstract class has constructor.
Comment
Post
Cancel
aswal
New Member
Join Date:
Aug 2013
Posts:
38
#3
Jan 2 '16, 10:00 AM
why can't we instantiate it. And what is the purpose of it.?
Comment
Post
Cancel
Luuk
Recognized Expert
Top Contributor
Join Date:
Mar 2012
Posts:
1043
#4
Jan 2 '16, 10:15 AM
Because:
...Abstract classes may not be instantiated...
and, to answer you next question about abstract classes
see:
Q&A : What is an abstract class, and when should it be used?
http://www.javacoffeebreak.com/faq/faq0084.html
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment