

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


private double sharePrice; private int fundNum; Fund( double sharePrice, int fundNum){ this .sharePrice = sharePrice; this .fundNum = fundNum; } public double getPrice(){ return sharePrice; } } b) public class MiracleFund extends Fund { private double pctIncrease; MiracleFund( int fundNum, double price, double pctIncrease) { super (price, fundNum); this .pctIncrease = pctIncrease; } public double getPrice() { return super .getPrice() * pctIncrease; } }