j-js/Ruby-Object-Inheritance
Record text
Create an object to model something in the real world. Then, extend the object with another object that is more specific. For example, create an Animal object with attributes that all animals have and then a Bird object that extends animal and has traits specific to birds. Give examples of using each object after they have been declared including assigning attributes and using instance methods.
Create an object to model something in the real world. Then, extend the object with another object that is more specific. For example, create an Animal object with attributes that all animals have and then a Bird object that extends animal and has traits specific to birds. Give examples of using each object after they have been declared including assigning attributes and using instance methods.
Cite this record
MLA
"j-js/Ruby-Object-Inheritance." Software Heritage origin index (GitHub origins), n.d., https://git.go-v.org/record/j-js%2FRuby-Object-Inheritance.
Chicago
"j-js/Ruby-Object-Inheritance." Software Heritage origin index (GitHub origins). n.d.. https://git.go-v.org/record/j-js%2FRuby-Object-Inheritance.
APA
Software Heritage origin index (GitHub origins). (n.d.). j-js/Ruby-Object-Inheritance. https://git.go-v.org/record/j-js%2FRuby-Object-Inheritance
Share card · JSON record · Cite this record (BibTeX) · Embed