Computer Science › Section I · Data abstractions › Topic I.5

Customized data types, classes, and objects

Integers and characters are not enough to describe songs, bank accounts or stacks. Programmers build their own types, first as plain records, then as abstract data types that bundle data with its operations, and finally as classes, the form most languages use today.

In this topic

  • Building your own types
  • User-defined types in C
  • Types and instances
  • What a record type does not give you
  • Abstract data types
  • Interfaces in Java
  • Classes extend abstract data types
  • Worked example: a stack class in Python
  • Worked example: new insides, same interface
  • Ready-made abstract types
  • Common mistakes to avoid
  • Key takeaways

This topic is part of Wuanberri Pro. Checking your access…

← Previous topicNext topic →