Class Student with the getFullName method

TypeScript Easy classes

Task «Class Student with the getFullName method»

Create a class `Student` that has two public fields: `firstName` (string) and `lastName` (string). The class constructor takes two arguments — first name and last name. Add a method `getFullName()` that returns a string containing the first name and last name separated by a space. It is guaranteed that the input strings are not empty.

Input Format

The first line contains the student's first name, the second line contains the last name.

Output Format

Output the string obtained by calling the getFullName() method.

Examples

Example 1

INPUT
Иван Петров
OUTPUT
Иван Петров

Example 2

INPUT
Анна Смирнова
OUTPUT
Анна Смирнова

Example 3

INPUT
()
OUTPUT
main.ts