| 52 | // Now to access element from array class we will use Scope Resolution (::) followed by Class name |
| 53 | |
| 54 | void Array :: Insert (int index , int x) |
| 55 | { |
| 56 | if (index >=0 && index <=length ) |
| 57 | { |
| 58 | for (int i=length-1;i>index;i--) |
| 59 | A[i+1]=A[i]; |
| 60 | A[index]=x; |
| 61 | length++; |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | int Array :: Delete (int index) |
| 66 | { |
nothing calls this directly
no outgoing calls
no test coverage detected