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
Tim Cooke
paul wheaton
Ron McLeod
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Programmer Certification (OCPJP)
When can a class not be extended?
Thomas Markl
Ranch Hand
Posts: 192
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
A class cannot be extended
a) When the constructor is declared private
b) When the class is declared final.
Do you know any other reasons?
Thomas
Ashik Uzzaman
Ranch Hand
Posts: 2379
I like...
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Markl,
I think u r right. There is no other reason that would generate a compile time error to extend a class.
------------------
azaman
Ashik Uzzaman
Director of Engineering, Twin Health, Mountain View, CA, USA
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Why cant a java class have protected access modifier....???
Aquestion about type of variable
Update the List View at run time
Help on static method
Can singleton classes be subclassed?
More...