From bf03e98bc9732f4f4cadc297f03b03fd111b9112 Mon Sep 17 00:00:00 2001 From: "Md. Zunaied Nudar" Date: Thu, 21 Aug 2025 18:36:13 +0600 Subject: [PATCH 1/2] Student.java added --- Student.java | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Student.java diff --git a/Student.java b/Student.java new file mode 100644 index 00000000..07938aa6 --- /dev/null +++ b/Student.java @@ -0,0 +1,37 @@ +public class Student { + private String name; + private int roll; + private String dept; + private String batch; + + // DEFAULT CONSTRUCTOR + public Student() {} + + // PARAMETERIZED CONSTRUCTOR + public Student(String name, int roll, String dept, String batch) { + this.name = name; + this.roll = roll; + this.dept = dept; + this.batch = batch; + } + + // COPY CONSTRUCTOR + public Student(Student student) { + this.name = student.getName(); + this.roll = student.getRoll(); + this.dept = student.getDept(); + this.batch = student.getBatch(); + } + + // GETTERS + public String getName() { return name; } + public int getRoll() { return roll; } + public String getDept() { return dept; } + public String getBatch() { return batch; } + + // SETTERS + public void setName(String name) { this.name = name; } + public void setRoll(int roll) { this.roll = roll; } + public void setDept(String dept) { this.dept = dept; } + public void setBatch(String batch) { this.batch = batch; } +} \ No newline at end of file From 7017e922b49cad5377fbb522060e3f5cb47aea21 Mon Sep 17 00:00:00 2001 From: "Md. Zunaied Nudar" Date: Thu, 21 Aug 2025 18:40:15 +0600 Subject: [PATCH 2/2] Calculator.java added in feature/calculator branch --- Calculator.java | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Calculator.java diff --git a/Calculator.java b/Calculator.java new file mode 100644 index 00000000..96a56d0d --- /dev/null +++ b/Calculator.java @@ -0,0 +1,10 @@ +public class Calculator { + // ADDITION + public double add(double a, double b) { return a + b; } + // SUBTRACTION + public double sub(double a, double b) { return a - b; } + // MULTIPLICATION + public double mul(double a, double b) { return a * b; } + // DIVISION + public double div(double a, double b) { return a / b; } +} \ No newline at end of file