Home / Expert Answers / Computer Science / write-in-c-oop-consider-the-following-class-loanapplicant-that-stores-data-of-an-applicant-who-pa965

(Solved): Write in C++ oop. Consider the following class LoanApplicant that stores data of an applicant who ...



Write in C++ oop.

Consider the following class LoanApplicant that stores data of an applicant who has applied for a loan. The class includes am

Add the following functionality to the above classes.
i. A parameterized constructor in each of the three classes.
ii. A pure

Consider the following class LoanApplicant that stores data of an applicant who has applied for a loan. The class includes amount of loan, start date of loan, total number L. Add the following functionality to the above classes. i. A parameterized constructor in each of the three classes. ii. A pure virtual function print() in the class LoanApplicant. The function must be overridden in each of the child classes and should print all the data related to a loan application. iii. A pure virtual function bool is approved() in the class LoanApplicant with functionality in the child classes. A home loan is approved if the land value is greater than the loan amount and the salary of the applicant is at least 50 times the amount of loan. Likewise, a car loan is approved if the car (model) is older than the year 2020 and the salary of the applicant is 20 times or more of the loan amount. iv. In the main program, define an array of two pointers to the class LoanApplicant. Using dynamic memory allocation, create an object each of the two child classes and call the print() method of each object.


We have an Answer from Expert

View Expert Answer

Expert Answer


#include using namespace std; //date class class Date { private: int dd; int mm; int yy; public: //date constructor Date() { dd=1; mm=1; yy=2000; } Date(int d,int m,int y)
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe