class line
{
public:
line(int Width)
: width(Width)
{
}
private:
int width;
};
I could name Width something like wantedWidth, but I’m just wondering, is there a convention for this or a better way? I don’t want to use Hungarian notation.
Yes there’s a convention, hundreds of them. Mine is to simply postfix my member names with an underscore.