Protected « Class « Ruby






1.A method marked protected can be used only by instances of the class where it was defined, or by derived classes.
2.protected that makes a method private, but within the scope of a class rather than within a single object.