logo

Crowdly

Objektorienteeritud programmeerimine (LTAT.03.003)

Looking for Objektorienteeritud programmeerimine (LTAT.03.003) test answers and solutions? Browse our comprehensive collection of verified answers for Objektorienteeritud programmeerimine (LTAT.03.003) at moodle.ut.ee.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Sisendbaidivoogu saab realiseerida järgmise klassi alamklassidega

0%
0%
0%
0%
View this question

Mitu baiti kirjutab järgmine programm faili?

try ( DataOutputStream dos = new DataOutputStream(

        new FileOutputStream("andmed.bin"))

) {

   dos.writeInt(14);

   dos.writeInt(779);

   dos.writeInt(884075);

   dos.writeDouble(12.24);

}
View this question

Klassi File objekt võib olla

0%
0%
0%
View this question

Mida väljastab järgmine programmilõik?

DoubleProperty arv1 = new SimpleDoubleProperty(15.5);

DoubleProperty arv2 = new SimpleDoubleProperty(5);

NumberBinding vahe = arv1.subtract(arv2);

arv2.set(12.6);

arv1.bind(arv2);

System.out.println(vahe.getValue());

View this question

Mida väljastab järgmine programmilõik?

DoubleProperty arv1 = new SimpleDoubleProperty(15.5);

DoubleProperty arv2 = new SimpleDoubleProperty(5);

NumberBinding vahe = arv1.subtract(arv2);

arv1.set(12.6);

System.out.println(vahe.getValue());

View this question

Mida väljastab järgmine programmilõik?

DoubleProperty arv1 = new SimpleDoubleProperty(15.5);

DoubleProperty arv2 = new SimpleDoubleProperty(5);

NumberBinding vahe = arv1.subtract(arv2);

System.out.println(vahe.getValue());

View this question

Mida väljastab järgmine programmilõik?

DoubleProperty arv1 = new SimpleDoubleProperty(15.5);

DoubleProperty arv2 = new SimpleDoubleProperty(5);

arv1.bind(arv2);

System.out.println(arv1.get());

View this question

Klassikirjelduses võib olla teise klassi kirjeldus.

View this question
Mis värvi on ring, kui klikkida sellele kolm korda?

Circle ring = new Circle(50, Color.RED);

kiht1.getChildren().add(ring);

kiht1.addEventFilter(MouseEvent.ANY, event -> event.consume());

ring.setOnMouseClicked(event -> {

if (ring.getFill() == Color.RED)

ring.setFill(Color.BLUE);

else

ring.setFill(Color.YELLOW);

});
0%
View this question
Mis värvi on ring, kui klikkida sellele kolm korda?

Circle ring = new Circle(50, Color.RED);

ring.setOnMouseClicked(event -> {

if (ring.getFill() == Color.RED)

ring.setFill(Color.BLUE);

else

ring.setFill(Color.YELLOW);

});
0%
0%
View this question

Want instant access to all verified answers on moodle.ut.ee?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!