Object-Oriented Programming Concepts Pt 1 Objects
Quiz yourself by thinking what should be in
each of the black spaces below before clicking
on it to display the answer.
Help!
|
|
||||
---|---|---|---|---|---|
show | Something that has both state and behavior in varying amounts of complexity.
🗑
|
||||
When referring to a real-world objects, what is meant by "state"? | show 🗑
|
||||
What is "behavior" when discussing the characteristic of real-world objects? | show 🗑
|
||||
What to states does a simple lamp have? | show 🗑
|
||||
show | On, Off, Current Volume, Current Station
🗑
|
||||
What are the behaviors of a simple radio? | show 🗑
|
||||
show | turn on, turn off
🗑
|
||||
In programming, what is an object? | show 🗑
|
||||
show | In what does an object store its "state"?
🗑
|
||||
Methods | show 🗑
|
||||
What is "data encapsulation"? | show 🗑
|
||||
What does "data encapsulation" enable? | show 🗑
|
||||
show | Benefit #1 of bundling code. When creating many objects, this allows for the source code for each object to be written and maintained separately from the source code of the other objects.
🗑
|
||||
separately maintained source code for each object which makes possible for the object to be passed around inside the system. | show 🗑
|
||||
show | A 2nd benefit of bundling code due to the nature of interacting only with an object,s methods.
🗑
|
||||
show | How is code re-use helpful?
🗑
|
||||
Code re-use | show 🗑
|
||||
show | Benefit #4 of bundling code is the ability to remove a problematic object from an application and replace it with a more suitable object.
🗑
|
||||
M.I.C.P. | show 🗑
|
Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.
Normal Size Small Size show me how
Normal Size Small Size show me how
Created by:
deglaze
Popular Languages sets