Challenge: Abstract Pattern
In this challenge, you have to implement the abstract pattern to solve the given problem.
We'll cover the following...
Problem statement
In this challenge, you have the abstract constructor function Loans
. There are three types of loans that can be given:
-
HomeLoan
-
StudentLoan
-
PersonalLoan
You need to implement Loans
such that it decides which ...