private string name;
an instance field?
Buckys C++ Programming Tutorials - 13 - Using Variables in Classes
Post a Reply
|Oldest Newest Rating|
· July 22, 2014
Don't know if this is what you want but here is an example of member variables in C++ using good practice.
DO NOT EVER USE GLOBAL VARIABLES IN C++ EVER x 90000 ^ 999999 NEVER.
If you need access to a method from a class WITHOUT creating an instance of it we use a static method.
Used in many types of software including music players, video games, and many large scale applications.
|Bucky Roberts Administrator|