I try to create 2 objects of a class like this
#include <iostream>
using namespace std;
class MyNum
{
private:
int m_num;
public:
MyNum(int num) : m_num{ num }
{
}
};
int main()
{
MyNum one(1);
MyNum two = 2;
}
What is the difference between these two lines
MyNum one(1);
MyNum two = 2;