Question: 1. By creating objects based on ruby's built-in-classes, you instantly get access to all the predefined methods that ruby defines for those objects. True or
1. By creating objects based on ruby's built-in-classes, you instantly get access to all the predefined methods that ruby defines for those objects.
True or False
2. Local variables are accessible throughout a Ruby program and have an unlimited scope. Every class in the program is allowed to access them.
True or False
3. To instantiate an object and initialize it with one or more properties in a single step you must use the initialize method.
True or False
4. Encapsulation is the ability to make important objects features available while hiding nonessential details, thereby focusing on the outside view of an object.
True or False
5. Encapsulation allows the internal representation of objects to be hidden from view outside definition.
True or False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
