I made a class User
(which is an instance of Class
), and made it inherit from class Person
. What makes this considered not to be multiple inheritance? Doesn't it inherit instance methods like new
from Class
and any methods that Person
offers?
In other words, how is this not multiple inheritance:
class User < class Person
some methods here...
end
when User
already inherits all of Class
's methods? Isn't the following what is going on under the hood?
class User < class Person and class Class
end