![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Classes and Objects - slide 13 : 29 |
An instance variable defines a piece of data in the class. Each object, created as an instance of the class, holds a separate copy of the instance variables.
![]() | Instance variables in the class BankAccount. |
![]() | Creation of three bank accounts. |
![]() | Output from the BankAccount client program. |
![]() | How private are private instance variables? |