members inside an object. The encapsulation of data and the intended operations on them prevents the data
portable! The operations are usually given in the form of functions operating upon the data items. Such
integer type to create variables
i and
j. For example,
you design a class called ElectronicBook, with a data
element called ArrayofPages. When you instantiate your class you make objects of type ElectronicBook.
Suppose that you create two of these called EB_Geography and EB_History. Every object that is
instantiated has its own data member inside it, referred to by ArrayOfPages.
Do'stlaringiz bilan baham: