From the course: Programming Foundations: Real-World Examples
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Clothing as objects - Python Tutorial
From the course: Programming Foundations: Real-World Examples
Clothing as objects
- Many modern languages, including Java, C# and Python, implement a programming model called object-oriented programming, which is intended to give programmers a way to think about the various elements in their program, like objects in the real world. Rather than thinking about a program as a sequence of logic in actions, in an object-oriented programming language, we create virtual objects as the pieces of our program and then interact with and use those objects to accomplish a task. Object-oriented languages give us a way to structure and organize our code, that makes it easier to design and maintain large-scale applications. I'll discuss many of the benefits of object-oriented programming throughout this chapter but first, let's start by asking the basic question, what is an object? Well, to understand what an object means, in terms of programming, start by thinking about what makes something an object in the real world. Now, imagine for a minute that this closet space represents…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.