/**
 * to jest biblioteka Darta
 */
class Person {
  String firstName;
  String lastName;
  PersonType type;

  Person([this.firstName, this.lastName]);

  String get fullName => "$firstName $lastName";
}

enum PersonType { student, employee }

class Student extends Person {
  Student([firstName, lastName]): super(firstName, lastName) {
    type = PersonType.student;
  }
}

class Employee extends Person {
  Employee([firstName, lastName]): super(firstName, lastName) {
    type = PersonType.employee;
  }
}
