I want to inherit a sub-class from a parent-class.
Here is my code. 3 classes are created in 3 separate files.
class Transportation
# codes
end
class Plane < Transportation
# codes
end
class Boat < Transportation
# codes
end
And when I was running this code, I got the error for Boat, but no issue for Plane when I only have Plane created:
uninitialized constant Transportation (NameError)