Ruby - Inheritance
Which of the following is the correct way to declare a private method in a Ruby class?
private on a line, then defining methods below it.private followed by method definition. Options B, C, and D are invalid syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions