Changes

Jump to: navigation, search

Object Oriented Programming with Visual Basic

114 bytes added, 17:53, 8 August 2007
Defining and Calling Methods
Now that we have defined the properties of our class, the next task is to define methods that will give us access to our data.
== Defining and Calling Class Methods ==
Since we have declared our our class data properties to be private, we need to provide methods which will give us access to those properties from our code. This is achieved using Get and Set methods. The syntax for get and Set methods is as follows:
When called, the above function subtracts the account fee from the balance, assigns thje new balance the intBalance variable and returns the new total.
 
Now that we have added some functionality to our class it is time to instantiate objects from the class ''blueprint''.
== Subclassing in PHP ==

Navigation menu