
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
24 questions
Hurricane Notes
Presentation
•
12th Grade
21 questions
Unit 6 Vocabulary
Presentation
•
12th Grade
25 questions
Electron Configuration, Orbital Notation, & Dot diagrams
Presentation
•
9th - 12th Grade
24 questions
2.4 Defining Selection
Presentation
•
12th Grade
23 questions
Ice Breaker
Presentation
•
12th Grade
21 questions
Addition and Subtraction
Presentation
•
KG
20 questions
fast food
Presentation
•
KG
Popular Resources on Wayground
24 questions
PBIS-HGMS Day 10
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Review 3
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
15 questions
HCS SCI 05 Summer School Assessment 3 Review
Quiz
•
5th Grade
35 questions
Lufkin Road Middle School Student Handbook & Policies Assessment
Quiz
•
7th Grade
18 questions
Geo 11.3 Area of Circles and Sectors
Quiz
•
9th - 11th Grade