do we declare the objects when we want to use and out of the classes? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

do we declare the objects when we want to use and out of the classes?

8th Oct 2016, 12:14 PM
Ayin GhaziMoradi
3 Respostas
0
i am just slightly confused by your question. objects must be declared in a function.
8th Oct 2016, 4:07 PM
dragonbro1015
dragonbro1015 - avatar
0
Objects of classes. They must be created within classes and always connected to classes.
9th Oct 2016, 3:50 AM
Tiago J Goncalves
Tiago J Goncalves - avatar
0
you need to declare an object of your class if you want to access it's members
10th Oct 2016, 8:44 PM
anand k n