What are generics and benefits?

Generics shift the burden of type safety from you to the compiler . There is no need to write code to test for the correct data type because it is enforced at compile time. The need for type casting and the possibility of run-time errors are reduced. Better performance.

Sizin İçin Seçtik  What are named parameters flutter?

Leave a Reply

Your email address will not be published. Required fields are marked *