I need to know what is the main purpose of becoming an obj of class and const (const MyClass obj;) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

I need to know what is the main purpose of becoming an obj of class and const (const MyClass obj;)

Help me understand the purpose of const MyClass obj;

1st Feb 2017, 4:03 PM
Ilidio Jelson Isaac Paulino
Ilidio Jelson Isaac Paulino - avatar
2 Answers
+ 10
A constant (variable that cannot change value) object is created with the nane "obj" and belongs to the class "MyClass"
1st Feb 2017, 4:11 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
thanks broo valentin))
1st Feb 2017, 4:13 PM
Ilidio Jelson Isaac Paulino
Ilidio Jelson Isaac Paulino - avatar