Introduction to OOP: Chapter 10: Subclasses and Subtypes [next] [previous] [audio] [real] [text]

Static Type Errors

Static typed languages permit type errors to be caught at compile time.

var
	r : real
begin
		(* error -- assignment of character to real *)
	r := 'x';
end
But advocates for dynamic languages claim these errors or rare.
Intro OOP, Chapter 10, Slide 4