Encapsulation – the ScoreManager class keeps the score variable private and controls access through a method.

Inheritance – PointCollectible inherits from the base class Collectible.

Polymorphism – the Collect() method is used the same way on all collectibles, but behaves differently depending on the class.

Abstraction – Collectible is an abstract class that defines a shared interface for all collectible types.

Published 13 days ago
StatusReleased
PlatformsHTML5
AuthorVladislavs
Made withUnity

Comments

Log in with itch.io to leave a comment.