016-003-005
Inheritance Basics: super Call in Card Inheritance
Easy
Problem Description
inheritance Basics: super Call in Card inheritance
In this problem, you will create a program that implements a GoldCard class extending Card, uses the super keyword to call the parent class constructor and methods, and displays point card information to standard output.
Learning Objective: Understand class inheritance (extends) and superclass reference (super), learn how to reuse parent class functionality
Create basic Card class and GoldCard class that inherits from it.
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
Sign Up