Skip to content

Commit 108aef7

Browse files
committed
updates in inheritance
1 parent 6b76bb1 commit 108aef7

File tree

6 files changed

+6
-60
lines changed

6 files changed

+6
-60
lines changed

.idea/workspace.xml

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/com/company/Lecture13/DynamicStack.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
package com.company.Lecture13;
2-
3-
import com.company.Lecture15.Stack;
4-
52
public class DynamicStack extends Stack {
63
@Override
74
public void push(int item) {

src/com/company/Lecture13/Stack.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.company.Lecture13;
22

33
public class Stack {
4-
private int[] data;
4+
protected int[] data;
55
private static final int DEFAULT_SIZE = 10;
66
private int top = -1;
77

src/com/company/Lecture13/StackClient.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.company.Lecture13;
22

3-
import com.company.Lecture15.Stack;
4-
53
public class StackClient {
64
public static void main(String[] args) {
75
Stack s = new Stack();

src/com/company/Lecture15/Stack.java

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/com/company/Lecture15/StackClient.java

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)