018-002-006

Inheritance Basics: Point Card Extension

Easy

Problem Description

inheritance Basics: Point Card Extension

In this problem, you will implement the getPoints() method in the GoldCard class that returns the total point count with bonus points added for gold card members.

Learning Objective: Extend classes with inheritance and reuse code

Create GoldCard class inheriting from PointCard class. Learn inheritance basics: inherit parent class functionality while adding unique child class features.

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