Join Barron Stone for an in-depth discussion in this video Clothing as objects, part of Programming Foundations: Real-World Examples.
- 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 my program and all of the various items…
- Reusing functions
- Local vs. global variables
- Creating and naming custom objects
- Class inheritance
- Modules and packages
- Multidimensional lists and tuples
- Queues and stacks
- Creating and combining sets
- Storing data in dictionaries
- If/else and switch statements
- For vs. while loops
- Error handling
- Polling and event-driven programming
Skill Level Beginner
Programming Foundations: Design Patternswith Elisabeth Robson2h 19m Intermediate
3. Class Inheritance
4. Modules and Packages
5. Lists and Tuples
6. Queues and Stacks
9. Conditional Execution
11. Error Handling
12. Polling and Event-Driven Programming
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.