<<< A custom method example | Index | A custom constructor, cont. >>> |
A custom constructor with three parameters may look like this:
public Product(String cc, String dd, double pp) { code = cc; description = dd; price = pp; }
<<< A custom method example | Index | A custom constructor, cont. >>> |