Solved

Which of the Following Code Snippets Creates a Line and Uses

Question 36

Multiple Choice

Which of the following code snippets creates a Line and uses a RotateTransition object to animate it for seven seconds?


A) Line myLine = new Line(25, 50, 100, 50) ;
RotateTransition rtrans =
New RotateTransition(new Duration(7000) , myLine) ;
B) Line myLine = new Line(25, 50, 100, 50) ;
RotateTransition rtrans =
New RotateTransition(new Duration(7) , myLine) ;
C) Line myLine = new Line(25, 50, 100, 50) ;
RotateTransition rtrans =
New Duration(7000) , myLine;
D) Line myLine = new Line(25, 50) ;
RotateTransition rtrans =
New RotateTransition(new Duration(7000) , Line) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions