Shiksha Nation
Skip to content

Duck typing

Style of dynamic typing in object-oriented programming

  • 2 min read
  • 2 chapters

Related on Lably

Through Computer programming, Object (computer science) and Inheritance (object-oriented programming)

In statically typed languages

In some statically typed languages such as Boo and D, class type checking can be specified to occur at runtime rather than at compile time.

C# can invoke dynamic typing which behaves similar to duck typing, through the keyword dynamic.

Sign up free to read the rest

One more chapter is free with a Lably account.

Already have an account?

More in Computing and communication