From 62d959f5fa90fefa59052cfcefa4ad05ac4cde22 Mon Sep 17 00:00:00 2001 From: fdai7600 Date: Tue, 6 Feb 2024 18:53:49 +0100 Subject: [PATCH] Added Constructor --- src/main/java/org/example/Professor.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/example/Professor.java b/src/main/java/org/example/Professor.java index 0c7b501..c6e9363 100644 --- a/src/main/java/org/example/Professor.java +++ b/src/main/java/org/example/Professor.java @@ -5,4 +5,12 @@ public class Professor { private String Name; public String role; + public Professor() { + } + + public Professor(String professorID, String name, String role) { + this.professorID = professorID; + Name = name; + this.role = role; + } }