F.CS202/lab2.1/jishee1/book/BicycleRegistration.java
<gh_stars>0public class BicycleRegistration extends Bicycle{
    public static void main(String[] args){
        Bicycle bike1 = new Bicycle();
        
        String n = bike1.tagNum;
        System.out.println(n);
        
        bike1.setOwnerName("Бат");
        
        Bicycle bike2 = new Bicycle();
        
        bike2.setOwnerName("Оюу");
        
        String owner1 = bike1.getOwnerName();
        String owner2 = bike2.getOwnerName();
        
        bike1.setPrice(120000);
        bike2.setPrice(95000);
        
        System.out.println(owner1 + "дугуйтай.");
        System.out.println(owner2 + "бас дугуйтай.");
        
        System.out.println("Батын дугуй " + bike1.getPrice() + " үнэтэй.");
        System.out.println("Оюуны дугуй " + bike2.getPrice() + " үнэтэй.");
    }
}