Object-Oriented Programming
Object-oriented programming is a type of computer programming based on the premise that all programs are essentially computer-based simulations of real-world objects or abstract concepts. For example:
Flight-simulator programs attempt to mimic the behavior of real airplanes.
Many computer games are simulations of actual games that humans play, such as baseball, NASCAR racing, and chess.
Even business programs can be thought of as simulations of business processes, such as order taking, customer service, shipping, and billing.
Objects are programming entities that have certain basic characteristics:
Identity: Every object in an object-oriented program has an identity. In other words, every occurrence of a particular type of object — an instance — can be distinguished from every other occurrence of the same type of object as well as from objects of other types.
Each object instance has its own location in the computer’s memory. Thus, two objects, even though they may be of the same type, have their own distinct memory locations. The address of the starting ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access