+ 1

How we call a variable of class without creating any function

12th Jan 2017, 9:59 AM
aman ankur
aman ankur - avatar
3 Respostas
0
declare public : public int var=10;
12th Jan 2017, 10:38 AM
ASNM
ASNM - avatar
0
I am asking in c++
12th Jan 2017, 10:47 AM
aman ankur
aman ankur - avatar
0
As ASNM said to declare it. And we call it a property.
12th Jan 2017, 11:06 AM
Guillaume BONHOMMEAU
Guillaume BONHOMMEAU - avatar