Skip to content

Commit

Permalink
Added more OOP exercises and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
shaqed committed Oct 14, 2018
1 parent 5f69956 commit d898712
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/oop/exe2/DynamicArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,38 @@

public class DynamicArray {

/***
* Create a new Dynamic Array that
* combines the values of the first array
* with the second
* @param arr1 The first array
* @param arr2 The second array
* @return arr1 + arr2
*/
public static DynamicArray combine(DynamicArray arr1, DynamicArray arr2) {
return null;
}




/***
* Default empty constructor
*/
public DynamicArray() {

}

/***
* A Copy-constructor.
* Given an object of dynamic array
* creates a new object with the same values as "other"
* @param other The other dynamic array
*/
public DynamicArray(DynamicArray other) {

}

/***
* This method retrieves an item from the dynamic array at said index
*
Expand Down

0 comments on commit d898712

Please sign in to comment.