THE GREEN INTERNATIONAL UNIVERSITY LAHORE
Lab Task No. 1
Program BSSE/ADSE Semester 1st
Resource Person Mehak Mussarat Department CS
Task Topic Class, Object, Function Total Marks 10
Date of Task 19-sept-2025 Time Duration 30 mints
Instructions:
Individual Work: Each student must perform and submit their own lab task unless group work is
specified.
Timely Submission: Lab tasks must be completed and submitted within the lab session or by the
instructor’s given deadline.
Format & Details: Clearly write your name, roll number, and section on your lab report/file.
Follow the required format (hard copy/soft copy as instructed).
Academic Integrity: Plagiarism, copying, or unauthorized collaboration will result in zero marks.
Professionalism: Maintain discipline in the lab, follow safety protocols, and keep your work
organized and neat.
Task No. Statements CLO Marks
1. Define a class with attributes (data). 1 5
2. Create objects from the class. 1 5
Create two classes: ClassA and ClassB.
Each class must have one method/function named that
3. prints a message identifying the class.
In a main function, create one object of each class and call
their methods/functions.
Good Luck!