Total members 11890 |It is currently Tue Apr 23, 2024 8:50 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





Code:
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
}
}





Author:
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : how do i create the classes XX and YY?
 How to create and use classes in C++     -  
 about classes     -  
 Abstract Classes in jsp     -  
 instantiating java classes     -  
 inherited in the derived classes     -  
 Wrapper classes use in java     -  
 java wrapper classes     -  
 Nested classes(inner class) in java     -  
 Add and Remove CSS classes to html tag dynamically     -  
 Boxing and unboxing make using wrapper classes     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com