+ 1

Oops concepts?

Object Oriented Programming Ruby is a pure object-oriented language, which means everything in Ruby is an object. Even simple numbers, strings and Booleans are objects. In programming, objects are independent units, and each has its own identity, just as objects in the real world do. An apple is an object; so is a mug. Each has its own unique identity. It's possible to have two mugs that look alike, but they are still separate, unique objects. To create objects we use classes. A class defines the data and actions associated with an object, but is separate from the object itself. In other words, a class can be thought of as an object's blueprint, description, or definition. For example, there can be many cat objects of the single class Cat.

10th Jul 2018, 7:36 AM
Somesh panigrahi
Somesh panigrahi - avatar
1 ответ
0
is this a question?
10th Jul 2018, 8:31 AM
hinanawi
hinanawi - avatar