Find the answer to your Linux question:
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. ...
  1. #1
    Just 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
    Code:
    class TSomething
    {
    private:
      int some;
    public:
    // __property int Thing = { read = some };
      TSomething();
      ~TSomething();
    };
    And i get error in the comment line (i f i erase te //, of course). somebody knows how to set properties?
    Last edited by devils casper; 05-08-2008 at 05:13 PM. Reason: added [code]...[/code] tag.

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    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++

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...