Is it constructor defined inside of class? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is it constructor defined inside of class?

l am defined the constructor outside of the class so I got an error .

30th Jun 2017, 12:41 AM
Prabhu
Prabhu - avatar
1 Answer
+ 1
It needs to be declared inside the class, but it can be defined outside of it. Post your code
30th Jun 2017, 2:01 AM
aklex
aklex - avatar