![]() |
|
|
|
|
|
|
2
9th October 19:17
External User
Posts: 1
|
Hi,
giving examples should not make a posting off-topic, as you suggest, David. For the OP: This depends. In C++, an objects class, has a "public interface", that is all stuff which is declared in the public:-section of the class. Its quite unusual in C++ to give someone direct control of class members. Its much more common to define methods for performing all the operations we need. So in C++ we often write something like object.set_properties(""); or, for a class designed by a more literate programmer: button.change_caption(std::string()); So ... look up the documentation of the class library you are using. If you have questions about it, it will be better to ask somewhere else (try Davids link for explanations). For learning C++ its usually best to have a book. Look here for reviews: http://www.accu.org/bookreviews/public/index.htm HTH, Stefan. |
|
|
3
9th October 19:18
External User
Posts: 1
|
There is no rul that objets hav props in C ++ lang. objets, that
r instanses o' clases, hav members not props. Props usully r a 'piler thingy n not part o' da lang. If u must hav props, reed ur 'piler docs. C ++ is not like vb. i no i can spel betr, but trend is not 2. I dont c y the O.P. isn't consistent wit "u" n "you". Maybe it's the rap culture thing. -- Thomas Matthews C++ newsgroup welcome message: http://www.slack.net/~shiva/welcome.txt C++ Faq: http://www.parashift.com/c++-faq-lite C Faq: http://www.eskimo.com/~scs/c-faq/top.html alt.comp.lang.learn.c-c++ faq: http://www.raos.demon.uk/acllc-c++/faq.html Other sites: http://www.josuttis.com -- C++ STL Library book |
|