LinkedIn principal author Doug Winnie explains how to work with existing classes by using the instance name to access the class members, or properties and methods. Doug also introduces the concept of static members, which are part of the class and are shared across all instances of the class throughout your program.
- As a programmer, you will work with pre-built classes…that are part of the programming language and SDK…or Software Development Kit that you'll be working with.…For instance, you might be working with a button component…that is part of iOS, Android, Windows,…HTML, or another technology.…That button is an object, just like any other…and is defined by a class.…When you create your instance of a class,…you instantiate it and the code in the constructor runs.…
The constructor is helpful if you need to set things up…in the instance when it runs.…When you work with an instance, you will access properties…and methods inside it, defined by the class,…using the instance name.…This is done by taking the instance name of the object…and then access the property or method.…To modify a property, you'll use the property name…and use the assignment operator to assign a value…to the class instance property.…
To use a method, you will use a method name…just like any other function you would write…and provide any parameters, if required,…
Join Doug Winnie as he explains the principles of programming and helps you connect to core concepts by exploring three ways that programmers perform their jobs. Doug starts by sharing the history of coding and then dives into functions, values, variables, and parameters used to define actions. He covers capturing input from users, creating conditional tests, using loops with arrays, and object-oriented programming basics. He also takes you beyond programming, into processes like debugging, refactoring, and building iteratively.
- Working with values and variables
- Breaking down tasks
- Customizing functions and parameters
- Building conditional tests
- Creating and changing arrays
- Working with objects and classes
- Debugging and refactoring code
- Going beyond the code as a programmer
Skill Level Beginner
1. Control Computers with Code
2. Define Actions Using Code
3. Repeat Actions and Test for Conditions
4. Objects and OOP
5. Beyond Programming
Debug problems2m 50s
Next steps1m 19s
- 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.