Question from the Ruby (legacy) test

Write a Ruby program that prints the first 100 prime numbers.

Expert

Given the following classes:

class MainClass < ParentClass; end

class SecondClass; end

How can I write a method "hello" that is shared between the two?

Author: Olivier MillaStatus: PublishedQuestion passed 23 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!