Can we mark constructor final? and why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can we mark constructor final? and why?

7th Oct 2016, 4:41 PM
Himanshu Vaish
Himanshu Vaish - avatar
3 Answers
+ 1
yes u can...constructor doesn't inherit...
7th Oct 2016, 5:46 PM
Ranveer Nautiyal
Ranveer Nautiyal - avatar
+ 1
no because a constructor is never inherited what ever the access modifier is
8th Oct 2016, 6:04 AM
Ameet Gill
Ameet Gill - avatar
+ 1
simple snake java game code available on www.goo.gl/tLwBS4
8th Oct 2016, 12:26 PM
Rahul Pachpind
Rahul Pachpind - avatar