Cookies help us deliver our services. By using our services, you agree to our use of cookies.
Learn more
-
-
03:36
03:36
-
-
The inherited hook method
- Ruby gives you the opportunity to interact with a class when a subclass inherits from this given class.
-
-
-
01:39
01:39
-
-
Default inheritance
- When you define a class in Ruby then this class implicitly inherits from the
Object
class.
-
-
-
04:06
04:06
-
-
Basic inheritance
- In Ruby, inheritance is represented by the
<
operator. Also, Ruby provides a set of guard when dealing with inheritance.
-
-
-
05:02
05:02
-
-
Pro -
Defining inheritance on-the-fly
- Ruby provides you a way to define inheritance at runtime.
-
-
-
03:15
03:15
-
-
The ancestor chain
- The ancestor chain is the representation of the class hierarchy in Ruby.
-