Is it possible to declare constructor out side of class?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Is it possible to declare constructor out side of class??

generally we will declare constructor with in body of class my question is that is it possible to declare out side of class with scope Resolution operator

11th Mar 2017, 4:56 PM
Swamy Kanuri
Swamy Kanuri - avatar
3 Answers
+ 5
no
11th Mar 2017, 6:10 PM
chris
chris - avatar
+ 2
No
11th Mar 2017, 4:59 PM
Meharban Singh
Meharban Singh - avatar
0
No
20th Mar 2017, 8:13 PM
charles mamy
charles mamy - avatar