Quantcast
Channel: Cost using class vs interface for memory and performance - Stack Overflow
Browsing index pages (2 articles)
↧

Cost using class vs interface for memory and performance

When writing typescript for my angular application, I can create my domain objects with an Interface or a class. I am looking for hard data on the actual costs of using the class approach. I know that...

View Article


Answer by Sygmoral for Cost using class vs interface for memory and performance

For super-simple data objects, use interfaces (or types). Examples: parameter objects, value types, and any other objects that don't require any built-in logic.For anything more complicated, use...

View Article

Browsing index pages (2 articles)


Latest Images