Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Kelas yang dipanggil
- public class Kendaraan {
- protected int jmlRoda;
- protected String warna;
- public void setJmlRoda (int jmlRoda){
- this.jmlRoda = jmlRoda;
- }
- public int getJmlRoda(){
- return jmlRoda;
- }
- public void setWarna (String warna){
- this.warna = warna;
- }
- public String getWarna(){
- return warna;
- }
- }
Add Comment
Please, Sign In to add comment