CHAPTER 10

image

Object-Oriented Programming Fundamentals

Object-oriented programming is a method of representing programmatic ideas that allows for improved abstraction, increased productivity, and better code reuse. Dart is a fully object-oriented programming language, in that it has no concept of primitive data types (primitive meaning “non-object”).1 In Dart, everything is an object. You’ve been using objects since the beginning of this book without even knowing it.

What Is an Object?

An object is an abstraction meant to represent a component of a program. Objects can be created, destroyed, given attributes, and made to perform actions. The metaphors ...

Get Dart for Absolute Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.