Use of constructor and destructor functions using C++
Are you preparing for BCA exam? Want a programming solution for finding sum of two complex numbers and definition of constructor and destructor? on this page our ISC experts shall resolve your query.
Below is the question which was asked in a question paper of BCA part-III(CS_72) Annual Exam 2015 of Nalanda Open University. This question carries 25 marks and hence require brief explanation and program also.
Q) Write a C++ program to find the sum of two complex numbers. Define proper constructor and destructor along with methods.
Q) Write a C++ program to find the sum of two complex numbers. Define proper constructor and destructor along with methods.