Both a class's and an object's lifetime spans from the time of its creation until its destruction. Watch this step-by-step programming tutorial to learn more about exploring object lifetime, as well as about the role of constructors and destructors, from the use of the New keyword to the calling up of a finalizer.
One place that is worth talking about language differences is in the idea of object lifetime.…How are objects created?…What happens when they're created? And what happens when with them?…We know the core idea is that once we define a class, we make an instance of it.…We make an object so we can use the object, and this is instantiation,…creating an instance.…To create an object, most object- oriented languages use the word new.…I'm going to show a few examples here.…Don't worry about syntax, just take a look at the different languages.…
So I have a Customer class, I want to make a Customer object.…In Java, I'd say Customer fred = new Customer.…It would be identical in C#, also using the word new.…In VB.NET, we'd have something fairly similar, again, using the word new, as does Ruby.…C++ looks very similar to Java, and C# except it's using the asterisk for a pointer symbol.…And Objective-C likes to be different, so it's using alloc and init instead of new.…Objective-C actually does have a new keyword, it's just more common to see this format.…
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.