Professional Documents
Culture Documents
Object Oriented Programming Lab
Object Oriented Programming Lab
O b j e c t O rLab
i Mid
e n t e d
Task01 P r o gr a m m i n g L a b
Lab 06 Marks 10
Instructions
Work on this lab individually. You can use your books, notes, handouts etc. but you are not allowed to borrow anything from your
peer student.
Marking Criteria
Show your work to the instructor before leaving the lab to get some or full credit.
What you have to do
Program the following tasks in your Microsoft C++ compiler and then compile and execute them. The name of your files will be
according to the task given in this lab.
ADT: Collection
Create a class named Collection for which each object can hold integers.
The class should have following two private data members
1. An integer pointer named data that holds a reference of an array created dynamically according to the specified size.
2. A constant integer named size to hold the maximum size of the array.
☺ ☺ ☺ BEST OF LUCK ☺ ☺ ☺
Umair Babar, PUCIT – PU. Lahore. Page 1 of 1