C++ OBJECT CLASS

                        WHAT IS OBJECTS IN CPP

       
  • Object are the basic run-time entities in an object-oriented system.
  • They may represent a person , a place, a bank account , a table of data or any item that the program has to handle.
  • They may also represent user-defined data such as vectors , time , lists.
  • Programming problem is analyzed in terms of objects and the nature of communication between them.
  • Objects take up space in the memory and have an associated address like a record in pascal,or a structure in C.

                      When a program is executed, the objects interact by sending messages to one another. For example, if "customer" and "account" are two objects in a program, then the customer object may send a message to the account object requesting for the bank balance. 
                     Each object contains data, and code to manipulate the data. Objects can interact without having to know details of each other's data or code.It is sufficient to know the type of message accepted,and the type of response returned by the objects. Although different authors represent them differently. Foll figure shows object



No comments:

Post a Comment

If you have any problems related to solutions or any concept please let me know.

Copyright (c) 2020 Custom Programs All Right Reserved

Pages