Member function must be inside public Write an constructor
| 12 | public: // Member function must be inside public |
| 13 | // Write an constructor |
| 14 | Array () // This is non parameter constructor |
| 15 | { |
| 16 | size=10; |
| 17 | A = new int[10]; // dynamically created array in heap |
| 18 | length=0; |
| 19 | |
| 20 | } |
| 21 | |
| 22 | // parametetrzied Constructor |
| 23 |
nothing calls this directly
no outgoing calls
no test coverage detected