Answers for "how to use a class c++"

C++
2

class cpp

class Exemple
{
  private:
  	/* data */
  public:
  	Exemple(); //Constructor
  	~Exemple(); //Destructor
};
Posted by: Guest on January-14-2021
-1

c++ classes

class MyClass {       
  // The class
  public:             
  // Access specifier
    int myNum;        // 
  Attribute (int variable)
    string myString;  // 
  Attribute (string variable)
};
Posted by: Guest on May-20-2021

Browse Popular Code Answers by Language