Sullivan Market

a web based full-circle development system



My Java Tutorials - Mutator Methods

Methods -- Mutator Methods:
    A mutator method is a method that alter variables. The mutator method name should start with "set".

For Example...

1 class RaceCar {
2 String status;
3 int speed;
4 int power;
5
6 public String getCarColor( ) {
7 return this.CarColor;
8 }
9 }

Back To Java Tutorials

©2012 SullivanMarket.com