Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ classes

class SampleClass
{
    int a;
public:
    SampleClass(int v)
    {
        a=v;
    }
    int RetVal()
    {
        return a;
    }
};
Source by cplusplus.com #
 
PREVIOUS NEXT
Tagged: #classes
ADD COMMENT
Topic
Name
1+6 =