Results 1 to 2 of 2
Hi people, I'm a newbie on Linux programming. I need a little help while i get used to the environment of kdevelop. I have a little problem with my classes.
...
- 05-08-2008 #1Just Joined!
- Join Date
- May 2008
- Posts
- 1
C++ OOP Properties
Hi people, I'm a newbie on Linux programming. I need a little help while i get used to the environment of kdevelop. I have a little problem with my classes.
I have a class like this
And i get error in the comment line (i f i erase te //, of course). somebody knows how to set properties?Code:class TSomething { private: int some; public: // __property int Thing = { read = some }; TSomething(); ~TSomething(); };Last edited by devils casper; 05-08-2008 at 05:13 PM. Reason: added [code]...[/code] tag.
- 05-08-2008 #2
my guess is you're looking for something like this, since properties as you are referring to them aren't native to c++
CodeGuru: Implementing a Property in C++


Reply With Quote