Skip to content

Commit

Permalink
Merge pull request #51 from SnehaNarendran01071998/Fix-Issues
Browse files Browse the repository at this point in the history
Fix issues in Abstraction Example
  • Loading branch information
TharinduDilshan authored Oct 21, 2021
2 parents 280415b + eb27028 commit 113c622
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Java/Algorithm/BubbleSort.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
public class BubbleSortExample {
public class BubbleSort {
static void bubbleSort(int[] arr) {
int n = arr.length;
int temp = 0;
Expand Down
2 changes: 1 addition & 1 deletion Java/Algorithm/InsertionSort.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
public class InsertionSortExample {
public class InsertionSort {
public static void insertionSort(int array[]) {
int n = array.length;
for (int j = 1; j < n; j++) {
Expand Down
2 changes: 1 addition & 1 deletion Java/Algorithm/SelectionSort.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
public class SelectionSortExample {
public class SelectionSort {
public static void selectionSort(int[] arr){
for (int i = 0; i < arr.length - 1; i++)
{
Expand Down
3 changes: 2 additions & 1 deletion Java/OOP/Abstraction/Person.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package Inheritance;
package Abstraction;


public abstract class Person {
private String firstName;
Expand Down
2 changes: 1 addition & 1 deletion Java/OOP/Abstraction/Student.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Inheritance;
package Abstraction;

public class Student extends Person {
private String ownerName;
Expand Down
2 changes: 1 addition & 1 deletion Java/OOP/Abstraction/Teacher.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Inheritance;
package Abstraction;

public class Teacher extends Person {
private String subject;
Expand Down
4 changes: 2 additions & 2 deletions Java/OOP/Abstraction/Test.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package Inheritance;
package Abstraction;

public class Test {
public void main(String[] args){
public static void main(String[] args){
Person teacher1 = new Teacher("John", "Tarbet", "Sri Lanka", "Science");
Person teacher2 = new Teacher("Ann", "Tarbet", "Australia", "Maths");

Expand Down

0 comments on commit 113c622

Please sign in to comment.