intro
-
public
: accessible both outside and inside class -
protected & private
: only accessible inside class itself and its subclasses -
protected
: can be called with an explicit receiver -
private
: can only called by implicit self
public
: accessible both outside and inside classprotected & private
: only accessible inside class itself and its subclassesprotected
: can be called with an explicit receiverprivate
: can only called by implicit self本文标题:Ruby: Access Control
本文链接:https://www.haomeiwen.com/subject/vupkzttx.html
网友评论