Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
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
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Programmer Certification (OCPJP)
abstract classes
shabbir zakir
Ranch Hand
Posts: 183
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
abstract public class d {
d() {
}
public static void main(
String
args[]) {
d e = new d();
}
}
Now abstract classes can have constructors but they can't instantiated.
Ishaan Mohan
Ranch Hand
Posts: 115
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
What's your question ?
The statement written at end is true. An abstract class can have constructor but it never get called as you cannot instantiate abstrct class.
bill bozeman
Ranch Hand
Posts: 1070
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Well, never gets called is not correct. It will get called when you subclass it and instantaite the subclass.
Bill
Ishaan Mohan
Ranch Hand
Posts: 115
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Sorry I missed that. I was wrong on that.
bill bozeman
Ranch Hand
Posts: 1070
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
No problem Ishaan, I have been wrong on many occasions.
Bill
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Regarding abstract class
Question on Abstract Class
Anonymous class concept
abstract classes
Abstract class question
More...