Devleoper API Question

Hi! I had a question about api reference for roblox
On the website, on the left hand side, you’ll see “grouped,” and “class tree.”
Can someone explain to me what the difference/similarity of these are?
The reason I’m asking is because I’m trying to learn programming lua. I manged to learn java and python each in 2 weeks, so I need to get some things sorted out before I crank my brain lol!

Thanks!
-coolguyweir

The “grouped” category sorts classes by some arbitrary named category decided by roblox for ease of use presumably
The “class tree” category shows the inheritance hierarchy, so anything that inherits, per se, instance, will be under the instance dropdown menu

Hi! Thanks for your reponse. Since I’m new to lua, I have a few questions. Anyone can answer!

  1. so, is class tree related to grouped in any kind of way?
  2. for the inheritance hierarchy, can only lower or more specific things be inherited by higher/ more generic categories?
  3. Can you please explain to me how classes, inheritance, and instance works together?
  1. No theyre completely unrelated, besides the fact that they both have the same classes
  2. Higher can only be inherited by lower, or more general can only be inherited by more specific
  3. Its basically the same as any object oriented programming language. Instance, for example, has properties and functions (in java called instance data and methods) which are used by countless classes such as :Destroy(), or Name, or Parent. These general functions and properties are inherited by classes like Part, Workspace, GuiBase, etc, etc. Basically anything you see in the explorer inherits instance
1 Like