Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Vehicle(int t, int c, int v){
- truck=t;
- car=c;
- van=v;
- }
- public Vehicle(){
- truck=0;
- car=0;
- van=0;
- }
- }
- public static void main (String[] args) {
- Vehicle cost= new vehicle(25000,15000,22500);
- //*cost.truck=25000; cost.car=15000; cost.van=22500;*//
- Vehicle this Vehicle= new vehicle();
- Vehicle choice Vehicle= new vehicle(25000,22500);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement