Graderpractice for programmers

Back to 273387 MAD 2562 - Classes

A. The Student

Problem

Create a class called Student that contains a constructor for the following fields:

- id: Int
- firstName: String
- lastName: String
Test that you can create a Student with the code let peter = Student(id: 5, firstName: "Peter", lastName: "Parker") .

Submit your class file only.

Examples

Submit your solution

swift