Advertisement
sergAccount

Untitled

Dec 19th, 2020
856
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.03 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package ja10;
  7.  
  8. /**
  9.  *
  10.  * @author Administrator
  11.  */
  12. public class JA10 {
  13.  
  14.     /**
  15.      * @param args the command line arguments
  16.      */
  17.     public static void main(String[] args) {
  18.         // TODO code application logic here
  19.         // объявляем переменную типа Car
  20.         Car c1;
  21.         Car c2;
  22.         // создаем объекта типа Car
  23.         // используем ключевое слово new для создания объекта
  24.         // переменной c1 присваиваем объект типа Car
  25.         c1 = new Car();
  26.         // объявляем переменную c3 и присваиваем объект типа Car
  27.         Car c3 = new Car();        
  28.         // вызываем метод для установки цвета авто
  29.        
  30.     }    
  31. }
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement