Реклама

Ruby – classes

The real world is filled by objects, and we can classify them. For example, a very small child is likely to say “bow-wow” when seeing a dog, regardless of the breed; we naturally see the world in terms of these categories. In OO programming terminology, a category of objects like “dog” is called a class,…