June 2016
Beginner to intermediate
292 pages
6h 8m
English
This chapter will illustrate an enhanced technique that allows us to define contracts between objects interacting each other. This technique, named duck typing, allows for implementing something similar to interfaces supported by many classical Object-Oriented Programming languages. The topics covered by the chapter are:
Data types are one of the basic features that ensure consistency throughout an application. Some operations can be made only on specific data types and checking if a value is of a valid data type is crucial to avoid runtime exceptions. Most compiled ...
Read now
Unlock full access