RUBY

High-Level Features


High Level Features of Ruby:

  • Inheritance - Ruby features single inheritance only purposely. However, Ruby also uses modules, which are basically a collection of methods. Importing a method allows you to use all of its methods.

  • Polymorphism - You can create classes at runtime. Templates are not part of the language as it does not make much sense (due to dynamic typing)

  • Compiled vs. interpreted vs. mixed - interpreted, allowing for immediate execution at the cost of slower execution speed if using a compiler

  • OO-concepts and features - include operator overloading (including +, -, *, /, all of which are methods that can be easily overloaded), method overloading, exception handling (similar to Java and python for ease of use), iterators, closures, and build-in pattern-matching

  • Main intended use or domain of application - "true" object oriented scripting language