Write a java program named MyLoan that uses an abstract class namedFamilyInsurance and subclasses which can display two different types of loans,Car and Health. And the cost per month for each loan.Please extend your program in question 3 by applying encapsulation andpolymorphism concepts. Understand the definition of both concepts and try as much as possible to convert your program and met with thecriteria. The criteria are as follows:1) Superclass able to define reference of subclass.2) The usage of private data field.3) Subclass with two parents class. Please use implements.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here