22. Speak go language for customs clearance and download online disk
mb60d76c6397af3 2021-07-25 03:24:18

download:22 Talk about customs clearance Go Language

 

package car;
 
public class Car {
     String color;
     int number;
     
     void run(){
         System.out.println(color+ "::" +number);
     }
}
 
class carDemo
{
     public static void main(String[] args)
     {
         Car c = new Car();
     
         show(c);
     }
     /*
      * Package function
      * Car c = new Car();
      * Car c1 = new Car();
      * */
     public static void show(Car cc)
     {
         cc.color = "red" ;
         cc.number = 4 ;
         cc.run();
         
     }
}
 
Please bring the original link to reprint ,thank
Similar articles

2021-06-04

2021-06-05

2021-06-13