Classes are sealed by default, i.e. properties cannot be added dynamically at runtime.
=> Dynamic classes can add additional dynamic properties at runtime; sealed classes cannot.
=> Sealed classes conserve memory because no internal hash table is needed to store dynamic properties, and the compiler can provide better error feedback.
=> Dynamic classes can add additional dynamic properties at runtime; sealed classes cannot.
=> Sealed classes conserve memory because no internal hash table is needed to store dynamic properties, and the compiler can provide better error feedback.
No comments:
Post a Comment