014-006-001
super.method Call: Self-Introduction
Easy
Problem Description
super.method Call: Self-Introduction
In this problem, you will create a program that calls super.displayInfo() from a Student class to invoke the parent Person class's output, then appends skill information to display a 3-line self-introduction to standard output.
Learning Objective: Call parent class method with super.methodName()
Create Person class with personal info and Student class inheriting from it. Call super.displayInfo() inside child's displayInfo() to add extra info to parent's output.
Input
Line 1: Name (string)
Line 2: Age (integer)
Line 3: Skill (string)
Output
Name: [name]
Age: [age]
Skill: [skill]
```java
## Examples
### Example 1: Basic student
Input:
```java
Alice
20
Java
```java
Output:
```java
Name: Alice
Age: 20
Skill: Java
```java
### Example 2: Different student
Input:
```java
Bob
22
Python
```java
Output:
```java
Name: Bob
Age: 22
Skill: Python
```java
### Example 3: Boundary (young age)
Input:
```java
Tom
18
C++
```java
Output:
```java
Name: Tom
Age: 18
Skill: C++
Test Cases
※ Output examples follow programming industry standards
Normal case
Input:
Emma 21 JavaScript
Expected Output:
Name: Emma Age: 21 Skill: JavaScript
Normal case
Input:
Liam 25 Ruby
Expected Output:
Name: Liam Age: 25 Skill: Ruby
Your Solution
Current Mode:● My Code
Person.java🔒
Student.java🔒
Solution.java🔒
3/6 ファイル165B
9
1
2
›
⌄
public class Person {
}
0 B / 5 MB
You have 10 free executions remaining
