I haven't got Access Modifiers yet

Hi There!!

In this lecture, we talk about access modifiers. I’m still scratching my head 'round this topic. I still need a bit of detailed explanation on what are these, how and when to use them.

Visible anywhere allows us to only see but not edit the variable anywhere.

Edit anywhere allows us to see and edit the variable anywhere. Correct me if I’m wrong here.

Yes edit anywhere allow us to see and edit anywhere in editor. Rob made a very good explication video on Access Modifier UE4 C++ Tutorial - What are Access Modifiers? - UE4 / Unreal Engine 4 Intro to C++ - YouTube

1 Like

Ok, I’ll watch it right now.

This was a nice video, I have a better understanding of access modifiers!

public: allows the variable/function to edit anywhere, even outside the class.

private: this does not allow us to edit the variable/function anywhere, expect the class itself.

protected: similar to private, you cannot edit the variable/function anywhere except the class itself and the class’s child class.

Please correct me if I’m wrong anywhere.

1 Like

Yes this is it!

1 Like

Thanks for the help buddy!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms