Join Anton Delsink for an in-depth discussion in this video When a carpet is art, part of Object Oriented Programming with C#.
- [Instructor] In another fun example of theory…versus practice, I want to just point out…how creative people can be…when it comes to everyday objects.…And so depending on the context you're working in,…you might have to just take a second look…at whether inheritance is the right approach…for modeling the relationships among different objects.…In this video, there's another fun example to look at,…to just consider the many variations…that we see in the real world,…that we may or may not be able…to bring into the programming world,…in terms of object-oriented structures that we're used to.…
Open the solution called Theory_v_Practice…in your exercise files, and open the file Imagination1,…specifically Tests_Imagination1.cs.…What you see here is a very simple class called Carpet,…and it has multiple properties.…Its length, its width, pattern on the carpet,…maybe the origin of the carpet.…Maybe it's a Persian carpet.…And so, if you put a carpet on the floor,…it's going to get dirty.…An action you might want to take on that carpet…
- Abstract classes
- Processing text with StreamReader
- IEnumerable and yield return
- Windows Forms controls
- Windows Forms with and without the designer
- Adding, organizing, and testing forms
- Creating classes
Skill Level Intermediate
What you should know1m 10s
1. Theory vs. Practice
2. Examples from .NET
3. Examples from Windows UI
4. Examples from Board Games
5. Examples from the Web
Next steps1m 13s
- 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.