Understanding relations

I believe Anytype is analogous to object-oriented programming (OOP).
In which,

Type Relation
Class Attribute

The best method of understanding the concepts may be a short video about OOP.