When creating different classes and programming strings, learning how to apply the right string at the right time is crucial. Polymorphism helps with exactly that issue. What is polymorphism? It is the term for programming that automatically detects the right response to different actions. Learn how polymorphism can streamline your code by watching this online video.
Finally, we have Polymorphism, which means many forms.…It's the most complex of the four terms, but very powerful.…It lets us automatically do the correct behavior even if what we're working with…could take one of many different forms. Well, that sounds a little vague.…So, here's an example of polymorphism that you've probably used without…even thinking about it: the Plus sign. Well, what does this do?…In a lot of languages, it depends.…If we're adding two variables together with the plus sign, if these variables…are integers, it will numerically add them.…
But on the other hand, if the variables A and B are strings, what will happen is…that we'll concatenate them.…It will automatically do the correct behavior but a different behavior when what…we've given it could have one of many different forms.…Now, this example is built into a lot of languages, but we can use the same idea…with our own classes and our own objects.…So, here's an example.…If I define a BankAccount class for a financial application and it describes…
Let Simon Allardice introduce you to the terms—words like abstraction, inheritance, polymorphism, subclass—and guide you through defining your requirements and identifying use cases for your program. The course also covers creating conceptual models of your program with design patterns, class and sequence diagrams, and unified modeling language (UML) tools, and then shows how to convert the diagrams into code.
- Why use object-oriented design (OOD)?
- Pinpointing use cases, actors, and scenarios
- Identifying class responsibilities and relationships
- Creating class diagrams
- Using abstract classes
- Working with inheritance
- Creating advanced UML diagrams
- Understanding object-oriented design principles
Skill Level Intermediate
1. Core Concepts
2. Object-Oriented Analysis and Design
Defining requirements6m 9s
3. Utilizing Use Cases
4. Domain Modeling (Modeling the App)
5. Creating Classes
6. Inheritance and Composition
7. Advanced Concepts
8. Object-Oriented Design Patterns
9. Object-Oriented Design Principles
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.