Question: Consider this Sleigh class: public class Sleigh { private double speed; public void SleighDefault() { //LINE 5 speed = 0.0; } } public Sleigh
Consider this Sleigh class: public class Sleigh { private double speed; public void SleighDefault() { //LINE 5 speed = 0.0; } } public Sleigh (double s) { //LINE 9 speed = 5; } public void defaultSleigh() { //LINE 13 speed = 0.0; } public Sleigh() { //LINE 17 speed = 0.0; } Which line begins to define a default constructor (see the comments)? O LINE 13 LINE 17 O LINE 5 O LINE 9
Step by Step Solution
3.39 Rating (155 Votes )
There are 3 Steps involved in it
The default constructor in Java is a noargument constructor ... View full answer
Get step-by-step solutions from verified subject matter experts
