What is the difference between type and object?

An object’s class defines how the object is implemented. The class defines object’s internal state and the implementation of its operations. In contrast, an object’s type only refers to its interface – a set of requests to which it can respond .

Sizin İçin Seçtik  What is difference between interface and class in TypeScript?

Leave a Reply

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