Skip to content

ak24d009 #18

@sk24d009-lab

Description

@sk24d009-lab

public class Car {
String brand;
String model;
String color;
int year;
double speed;

void start() { System.out.println("Машин аслаа."); }
void drive() { System.out.println("Машин явж байна."); }
void stop() { System.out.println("Машин зогслоо."); }

}

public class Phone {
String brand;
String model;
String color;
int battery;
boolean isOn;

void call() { System.out.println("Дуудлага хийж байна."); }
void text() { System.out.println("Мессеж бичиж байна."); }
void charge() { System.out.println("Утас цэнэглэгдэж байна."); }

}

public class Book {
String title;
String author;
int pages;
String genre;
boolean isOpen;

void open() { System.out.println("Ном нээгдлээ."); }
void read() { System.out.println("Ном уншиж байна."); }
void close() { System.out.println("Ном хаагдлаа."); }

}

public class Computer {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions