Downcasting (as)
Classes / Inheritance
Base class
Abstract classes
Interface inheritance
Upcasting to the base type
Downcasting (as)
Type check (is)
Method override
Property override
Overriding property observers
Member hiding
Sealed class
Sealed class members
Protected class members
Private class members
Downcasting (as)
This example is in the full version, available in the stores below:
Code Recipes
App Store
Already bought it? Sign in to your account
Languages
C++
Java
C#
Rust
Swift
Kotlin
Objective-C