Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
Working with classes?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Alf P. Steinbach, post: 2555737"] * [email]fakeprogress@gmail.com[/email]: Tell your professor about the existence of std::string. It's Very Bad Form to expose internal variables via references or pointers to non-const. Also, the prefix "get" has negative value in C++. It does have some positive value in languages like Java and C# that support dynnamic introspection, combined with a commonly accepted convention for identifying getters and setters. Third, there should presumably be some arguments? Ouch, ditch that professor, if that's /actually/ the specification. An uninitialized object, of a class with non-trivial constructor(s), should never exist. [snip] Yes, the return type. What's the book title? Have you looked it up in ACCU's book reviews? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
Working with classes?
Top