Skip to content

Commit 27753bb

Browse files
author
asri71
committed
Removing inheritance from Vector class
1 parent 5f22570 commit 27753bb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/dataStructures/Stack.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
import java.io.Serializable;
44
import java.util.EmptyStackException;
5-
import java.util.Vector;
65

7-
public class Stack<E> extends Vector implements Serializable {
6+
public class Stack<E> implements Serializable {
87

98
/**
109
* Inital capacity alloted to stack on object creation

0 commit comments

Comments
 (0)