Ruby—is nesting classes and child classes the same thing?

Viewed 997

What's the difference between Nested and Child in the example below? Is it just different syntax for the same thing?

class Parent
  class Nested
    ...
  end
end

class Child < Parent
  ...
end
2 Answers
Related