Register on the forum now to remove ALL ads + popups + get access to tons of hidden content for members only!

Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > Java

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 11-16-2017, 02:50 AM   #1
sunled
Registered User
 
Join Date: Nov 2017
Posts: 314
Can you make a constructor final?

Can you make a constructor final?
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
sunled is offline   Reply With Quote

Old 12-11-2017, 09:39 PM   #2
travelowebseo
Registered User
 
Join Date: Sep 2017
Posts: 84
So making a constructor final is not required, so it is not used with constructor. When you set a method as final, it means : "You don't want any class override it", but constructor by JLS definition can't overridden,so it is clean. We can't make constructor to be final because constructor is never inherited.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
travelowebseo is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Build Your Own Solar Panels And Start To Make Free Energy fuqshenjie Search Engine Optimization 2 07-04-2017 03:14 AM
How can i make money via my website? Parfitt General Discussion 22 06-14-2017 10:16 AM
New Cycloramic iPhone App to Make Panoramic Videos abiabiah General Discussion 3 07-14-2015 10:46 AM
How can i make my nose permanently smaller with out surgery? dateline General Discussion 2 02-15-2014 02:16 AM
Discover How to Make Money Online Creating Your Own Niche Web Site. theshawnchin Making money on the web 1 12-31-2013 01:18 AM


All times are GMT -7. The time now is 04:49 PM.


Powered by vBulletin Copyright © 2013 vBulletin Solutions, Inc.