Page 220 - Computer_Science_F5
P. 220
Chapter
Four Chapter Four: Object oriented programming with C++
FOR ONLINE READING ONLY
Object Oriented Programming with C++
Introduction
In everyday real-life activities, we use Object-Oriented Programming
(OOP) directly or indirectly. This is a paradigm that helps in organizing and
structuring code in a way that is both intuitive and scalable. By modeling real-
world entities as objects with properties and behaviors, OOP allows for a more
natural mapping of complex systems into manageable software solutions. In
this chapter, you will learn about Concept of Object-Oriented Programming
(OOP), General structure of object oriented programs, Syntax and constructs
to create Object-Oriented programs, and how to debug object oriented
programs using C++.The competencies developed will enable you tackle
problems in your surroundings by transforming challenges into OOP solutions
and fostering collaboration within coding teams. Furthermore, you will be able
to code maintenance and debug software systems.
Think:
Sorting tools in a toolbox or following guiding instructions in cooking4
Concept of Object-Oriented Programming (OOP)
Scenario 4.1: Your school library system
Your school library wants to efficiently organise and manage its collection of
books to improve book service delivery at your school. The librarian aims to
create a system that can keep track of books, handle checkouts, and provide
information to students and staff.
Questions:
1. What kind of information should the system collect and from which type of system
users?
2. Do you think, in this scenario, the OOP can be applied in real-world situations?
Briefly explain how.
211
Student’s Book Form Five
Computer Science Form 5.indd 211 23/07/2024 12:33

