You have the following class:public class Holder { public Holder(int capacity) { }}You need to extend this class with the following class:public class SmartHolder extends Holder { public SmartHolder(int capacity) { .. }}What code do you need to add to the SmartHolder constructor?

🎲 Try a Random Question  |  Total Questions in Quiz: 16  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Java Quiz — practice the complete quiz, review flashcards, or try a random question.

For Pluralsight Skill Assessments.


You have the following class:<br>public class Holder {<br> public Holder(int capacity) { }<br>}<br>You need to extend this class with the following class:<br>public class SmartHolder extends Holder {<br> public SmartHolder(int capacity) {<br> ..<br> }<br>}<br>What code do you need to add to the SmartHolder constructor?