
App Dev Proj Week 1 Lesson 2
Presentation
•
Computers
•
12th Grade
•
Medium
Bobby Liu
Used 6+ times
FREE Resource
17 Slides • 12 Questions
1
Welcome to Lesson 2!
Classes, Objects & Methods
2
What are we going through today?
Attendance
Admin matters
Object-oriented concepts in Python
Q&A
3
Admin Matters
Submit project groupings by lesson 3
4
Forgot to mention...
There will be quiz!
5
Unprecedented rules
The inevitable...
6
If you need to be excused, raise your hands and wait for my signal...
7
Or if you can disappear without me knowing, please go ahead :)
8
Let's gauge our knowledge on object-oriented concepts
9
Multiple Choice
What is the 1st fundamental of object-oriented concept?
Decapsulation
Enchanted
Encapsulation
Disenchant
10
Encapsulation
Data hiding
Attributes are hidden or kept as private in a class
Attributes cannot be accessed directly
Allows manipulation of attributes through the accessor and mutator methods
11
Multiple Choice
How about the 2nd fundamental of OO?
Intuitive
Inheritance
Extension
12
Inheritance
One class inheriting the attributes and methods of another class
13
Multiple Choice
Let's see if you know the 3rd one
Abominable
Ability
Abstraction
Apple
14
Abstraction
Hides functionalities of a function from the public
Enhances development of main functions without the need to know the details of the other functions
Sometimes works together with Encapsulation concepts in place
15
Multiple Choice
The last one!
Polygon
Persistence
Polymorphism
16
Polymorphism
The child class can be any form of the parent class
17
Classes, Objects & Methods
Back to the slides
18
Let's shake our brains!
19
Multiple Choice
What is a blueprint from which objects are created?
Instance
Class
Method
Attribute
20
Multiple Choice
What is an instance of a class?
Method
Attribute
Instance
Object
21
Multiple Choice
What can be created many times as needed?
Class
Object
Attribute
Method
22
Multiple Choice
What doesn't allocate memory when created?
Object
Class
23
Multiple Choice
Which type of attribute can be accessed by qualifying with an instance name?
Data attribute
Class attribute
24
Multiple Choice
What is the method that sets the value of the attribute?
Mutator method
Accessor method
25
Multiple Select
What are the 2 advantages of encapsulation?
Hides attributes from others
None of the above
Makes the class look more sophisticated
Allow validation before storing values
26
Multiple Choice
How many ways can you define a class in Python?
I can't
One way
More than once
27
Next week's lesson
Week 2 Lesson 1
Project Scenario
Using Bootstrap framework to create navigation bar
Week 2 Lesson 2
More object-oriented concepts for Python
Exception Handling in Python
28
Q&A
29
Thank you class!
See you all next week!
Welcome to Lesson 2!
Classes, Objects & Methods
Show answer
Auto Play
Slide 1 / 29
SLIDE
Similar Resources on Wayground
21 questions
Best Method: Solving Systems of Equations
Presentation
•
7th - 10th Grade
21 questions
Electric Field
Presentation
•
12th Grade
21 questions
Cold War Intro
Presentation
•
KG
23 questions
4Q3 - OCP of Media and Information - Econ, Educ, Soc, Political
Presentation
•
12th Grade
22 questions
JavaScript - DOM
Presentation
•
12th Grade
20 questions
Climate and Currents Notes
Presentation
•
12th Grade
21 questions
Political Cartoons
Presentation
•
12th Grade
21 questions
Activity
Presentation
•
University
Popular Resources on Wayground
19 questions
Naming Polygons
Quiz
•
3rd Grade
10 questions
Prime Factorization
Quiz
•
6th Grade
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade