Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package oop1;
- /**
- *
- * @author BESTPC
- */
- public class Car {
- public void start(){
- System.out.println("Car : Started"); // method ในการสตาร์ท
- }
- public void move(){
- System.out.println("Car : move"); // method ในเคลื่อนที่
- }
- public void Brakes(){
- System.out.println("Car : Brakes"); // method เบรกรถ
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement