Changes

Jump to: navigation, search

Ruby Object Oriented Programming

1 byte removed, 16:57, 1 June 2010
What is a Class?
New classes can be created based on existing classes, a concept known as ''inheritance''. In such a scenario the new class (known as the ''subclass'') inherits all the features of the parent class (known as the ''superclass'') with added features that differentiate it from the ''superclass''. Ruby supports ''single inheritance'' in that a subclass can only inherit from a single ''superclass''.
Other languages such as Java C++ support ''multiple inheritance'' where the ''subclass'' can inherit the characteristics of multiple superclasses.
== Defining a Ruby Class ==

Navigation menu