In object-oriented programming, the fundamental unit is the object. An object is an entity that serves as a container for data and also controls access to the data. Associated with an object is a set of attributes, which are essentially no more than variables belonging to the object. (In this book, we will loosely use the ordinary term variable for an attribute.) Also associated with an object is a set of functions that provide an interface to the functionality of the object, called methods.
- Chapter 1. Ruby in Review
- from The Ruby Way: Solutions and Techniques in Ruby Programming, Third Edition
- Publisher: Addison-Wesley Professional
- Released: March 2015
Correct but confusing because "and" looks like a conjunction.
Share this highlighthttp://www.safaribooksonline.com/a/the-ruby-way/523051/