Lecture

Objects Everywhere

Description

This lecture discusses the concept of pure object orientation, where every value is an object, even in languages like Scala which have exceptions like primitive types and functions. It covers standard classes like Int and Boolean in Scala, as well as the implementation of Boolean constants and pure Booleans. The lecture also includes exercises on implementing classes from first principles, such as the abstract class Nat for non-negative integers. Code examples are provided for class Int and the implementation of Zero and Succ classes for Nat.

About this result
This page is automatically generated and may contain information that is not correct, complete, up-to-date, or relevant to your search query. The same applies to every other page on this website. Please make sure to verify the information with EPFL's official sources.