Calling Member Functions within Main C++

前端 未结 7 1507
野的像风
野的像风 2021-02-04 12:24
#include 

using namespace std;

class MyClass
{
public:
       void printInformation();
};

void MyClass::printInformation()
{
     return;
}

int main(         


        
相关标签:
7条回答
  • 2021-02-04 13:01

    you have to create a instance of the class for calling the method..

    0 讨论(0)
提交回复
热议问题