Skip to content

Assignment Operator

1
  • Aditya Narayan Mohanty
Assignment Operator

Let us understand assignment operator with the help of an example of employeeData class.#include #include using namespace std;class employeeData {unsigned int m_salary; char* m_name; public:~ employeeData() { if (m_name) { delete []m_name; }} employeeData() { cout

Read this post on allabouttechnologies.co.in


Popular Articles by this blogger