Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public Vehicle(int t, int c, int v){
  2. truck=t;
  3. car=c;
  4. van=v;
  5. }
  6. public Vehicle(){
  7. truck=0;
  8. car=0;
  9. van=0;
  10. }
  11. }
  12. public static void main (String[] args) {
  13. Vehicle cost= new vehicle(25000,15000,22500);
  14. //*cost.truck=25000; cost.car=15000; cost.van=22500;*//
  15. Vehicle this Vehicle= new vehicle();
  16. Vehicle choice Vehicle= new vehicle(25000,22500);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement