Total members 10261 | Gratitudes |It is currently Wed May 23, 2012 8:27 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 1 post ] 
Author Question
 Question subject: how do i create the classes XX and YY?
PostPosted: Thu Oct 13, 2011 3:59 pm 

public class ZZ {
public static void main (String args[]){

String message;
double x1,x2=0.4;
xx test= new xx("Johnny",50);
test.setTarget(80.90);
test.setX(10);
yy y1= new yy("zzzz");
yy y2= new yy("yyyy",70.5);
y1.setY(200); //litres
y1.driveMe("Today");
y2.setY(20); //litres
y1.setMax(200); //km/hour
y2.setA( 0.98);
y2.accellerate( 11.2);
System.out.println(y2.getModel() +" costs " +y2.getPrice( x2));

test.tt(y1);
test.tt(y2);
System.out.println(y1.getModel() +" has " +y1.getY() + " litres remaining"); //litres
System.out.println(test.getID() +" has travelled " + test.getLog() ); //km
}
}


TOP
  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 1 post ] 
Quick reply


  

 Similar topics
 create download link
 Create a moving text banner
 how to create a sub domain?
 how to create a web site
 Create a text file
 create folder in asp.net
 create button in asp.net
 Create new file with JavaFX
 create blogs in jsp
 instantiating classes

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team