My Learning
Pathways
Browse
Live
Educator Hub
Search
Encapsulation in object-oriented programming
Tutorial
·
foundational
·
+10XP
·
20 mins
·
0
20
Unity Technologies
Overview
Summary
1. Overview
Q&A (0)
Mark step as complete
2. What is encapsulation?
Q&A (0)
Mark step as complete
3. Private variables and Inspector visibility
Q&A (0)
Mark step as complete
4. Find a vulnerable public variable in your project
Q&A (0)
Mark step as complete
5. Create a Property with a Getter and a Setter
Q&A (0)
Mark step as complete
6. Locate the need for setter validation
Q&A (0)
Mark step as complete
7. Make a property with a backing field
Q&A (0)
Mark step as complete
8. Implement setter validation to prevent negative numbers
Q&A (0)
Mark step as complete
9. Summary
Q&A (0)
Mark step as complete
Complete this tutorial
Mark all steps complete