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.

Test Cases

※ Output examples follow programming industry standards

Input:
Expected Output:
1000
Input:
Expected Output:
1100
Input:
Expected Output:
550
Input:
Expected Output:
0
❌ Some tests failed
❌ エラー発生

Your Solution

Current Mode: My Code
PointCard.java🔒
GoldCard.java🔒
2/6 ファイル69B
⚠️警告
  • No main method found
public class PointCard {
}
0 B / 5 MB

You have 1 free executions remaining