Object-Oriented Programming LAB # 2
Object-Oriented Programming LAB # 2
AIR UNIVERSITY
LAB ASSESSMENT:
Data presentation
Experimental results
Conclusion
Date: Signature:
Date: 04-3-2025
Page | 1
BCE-2A OOP LAB
LABORATORY
EXPERIMENT NO.2
Page | 2
BCE-2A OOP LAB
Page | 3
BCE-2A OOP LAB
Page | 4
BCE-2A OOP LAB
Page | 5
BCE-2A OOP LAB
CONCLUSION
• Structures offer a convenient way to group related data fields together, simplifying data
management and improving readability and maintainability of the code.
• Using an array of structures provides a systematic way to store and manage multiple
employee records, making it easier to handle and process bulk data efficiently.
• Passing the entire structure to functions allows for cleaner and more modular code, enabling
better organization and reusability of logic across the program.
• Passing the structure by reference to the display function improves efficiency by avoiding data
duplication and reducing memory overhead, making the program more optimized for handling
larger datasets.
Page | 6