what is difference between class and void. some other declaration s? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

what is difference between class and void. some other declaration s?

20th Sep 2016, 8:08 PM
Dito Nikolashvili
Dito Nikolashvili - avatar
2 Respostas
0
void is basically a function, while class is like a structure but with added tweaks
21st Sep 2016, 1:57 AM
Antonio Gallimore
Antonio Gallimore - avatar
0
void is a keyword in c , CPP it means nothing or no type. void can be used as FUNCTION ARGUMENT, FUNCTION RETURN TYPE ,AND DATA POINTER. whereas class is a user define data type, it is the place where object related behavior ,attributes are define. object is variable of class data type.
25th Sep 2016, 7:22 PM
shiv prakash
shiv prakash - avatar