Question: (a). Constructors and destructors are used in object oriented programming as a good practice. Explain them using the Student fee Payment example from the previous
(a). Constructors and destructors are used in object oriented programming as a good practice. Explain them using the Student fee Payment example from the previous question, which states (A University needs to calculate the fees of students. Explain the required class and function definition outside the class clearly writing a program)
(b) Consider an array named Student [Marks] to store her marks for 3 subjects. Explain how a total of the three subjects can be found using pointers.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
