diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..84adc83 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/homework-java-ironschool.iml b/.idea/homework-java-ironschool.iml new file mode 100644 index 0000000..b107a2d --- /dev/null +++ b/.idea/homework-java-ironschool.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..ea2d78f --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..17d1704 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1718893078485 + + + + \ No newline at end of file diff --git a/com/ironhack/homework2/src/Main.java b/com/ironhack/homework2/src/Main.java new file mode 100644 index 0000000..ef513d6 --- /dev/null +++ b/com/ironhack/homework2/src/Main.java @@ -0,0 +1,7 @@ +package com.ironhack.homework2.src; + +public class Main { + public static void main(String[] args) { + + } +} diff --git a/com/ironhack/homework2/src/Teacher.java b/com/ironhack/homework2/src/Teacher.java new file mode 100644 index 0000000..0ccc402 --- /dev/null +++ b/com/ironhack/homework2/src/Teacher.java @@ -0,0 +1,39 @@ +import java.util.UUID; + +public class Teacher { + private String teacherId; + private String name; + private double salary; + + // Parameterized constructor + public Teacher(String name, double salary) { + this.teacherId = UUID.randomUUID().toString(); // Generate random UUID for teacherId + this.name = name; + this.salary = salary; + } + + // Getter for teacherId + public String getTeacherId() { + return teacherId; + } + + // Getter for name + public String getName() { + return name; + } + + // Setter for name + public void setName(String name) { + this.name = name; + } + + // Getter for salary + public double getSalary() { + return salary; + } + + // Setter for salary + public void setSalary(double salary) { + this.salary = salary; + } +} \ No newline at end of file