diff --git a/src/Main.java b/src/Main.java deleted file mode 100644 index 6c19da8..0000000 --- a/src/Main.java +++ /dev/null @@ -1,15 +0,0 @@ -public class Main { - public static void main(String[] args) { - System.out.println(args[1]); - System.out.println("Hello world!"); -// System.out.println(1); - } - - void myFunction() { - - } - - int myFunction2() { - return 1; - } -} diff --git a/src/encapsulationInheritancePolymorphism/Encapsulation.java b/src/encapsulationInheritancePolymorphism/Encapsulation.java deleted file mode 100644 index aa53da3..0000000 --- a/src/encapsulationInheritancePolymorphism/Encapsulation.java +++ /dev/null @@ -1,20 +0,0 @@ -package encapsulationInheritancePolymorphism; - -public class Encapsulation { - /*private*/ int field; - private int field2; -// int a = 1; - - public void myMethodForTheField () { - System.out.println(field); - } - - public void myMethodForTheField2 () { - System.out.println(field); - } - - public void myMethodForTheFieldAndTheField2 () { - System.out.println(field); - } -} - diff --git a/src/encapsulationInheritancePolymorphism/EncapsulationInheritancePolymorphism.java b/src/encapsulationInheritancePolymorphism/EncapsulationInheritancePolymorphism.java deleted file mode 100644 index b7343df..0000000 --- a/src/encapsulationInheritancePolymorphism/EncapsulationInheritancePolymorphism.java +++ /dev/null @@ -1,10 +0,0 @@ -package encapsulationInheritancePolymorphism; - -public class EncapsulationInheritancePolymorphism { - - public static void main(String[] args) { - int a = 1; -// var b = 2; -// System.out.println(b); - } -} diff --git a/src/encapsulationInheritancePolymorphism/Main.java b/src/encapsulationInheritancePolymorphism/Main.java deleted file mode 100644 index 47dc9d3..0000000 --- a/src/encapsulationInheritancePolymorphism/Main.java +++ /dev/null @@ -1,14 +0,0 @@ -package encapsulationInheritancePolymorphism; - -public class Main { - public static void main(String[] args) { - Student student = new Student(); - - - - - //... - - student.setFaculty("FPM", "MO-22"); - } -} diff --git a/src/encapsulationInheritancePolymorphism/Student.java b/src/encapsulationInheritancePolymorphism/Student.java deleted file mode 100644 index 2ad836d..0000000 --- a/src/encapsulationInheritancePolymorphism/Student.java +++ /dev/null @@ -1,18 +0,0 @@ -package encapsulationInheritancePolymorphism; - -public class Student { - private String name; - private String surname; - private String group; - private String faculty; - - - public String getName() { - return name; - } - - public void setFaculty(String faculty, String group) { - this.faculty = faculty; - this.group = group; - } -} diff --git a/src/test/A.java b/src/test/A.java deleted file mode 100644 index 8553a5e..0000000 --- a/src/test/A.java +++ /dev/null @@ -1,13 +0,0 @@ -package test; - -public class A { - /*private*/ int f/* = 3*/; - - public int getF() { - return f; - } - - public void setF(int f) { - this.f = f; - } -} diff --git a/src/test/Main.java b/src/test/Main.java deleted file mode 100644 index bf9f4b3..0000000 --- a/src/test/Main.java +++ /dev/null @@ -1,15 +0,0 @@ -package test; - -public class Main { - public static void main(String[] args) { - A a = new A(); - System.out.println(a.getF()); - a.setF(1); - System.out.println(a.getF()); - - System.out.println(a.f); - - int[] array = {1, 2, 1}; - System.out.println(array.length); - } -}