Search Header Logo
App Dev Proj Week 1 Lesson 2

App Dev Proj Week 1 Lesson 2

Assessment

Presentation

Computers

12th Grade

Medium

Created by

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?

1

Decapsulation

2

Enchanted

3

Encapsulation

4

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?

1

Intuitive

2

Inheritance

3

Instagram

4

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

1

Abominable

2

Ability

3

Abstraction

4

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!

1

Polygon

2

Persistence

3

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?

1

Instance

2

Class

3

Method

4

Attribute

20

Multiple Choice

What is an instance of a class?

1

Method

2

Attribute

3

Instance

4

Object

21

Multiple Choice

What can be created many times as needed?

1

Class

2

Object

3

Attribute

4

Method

22

Multiple Choice

What doesn't allocate memory when created?

1

Object

2

Class

23

Multiple Choice

Which type of attribute can be accessed by qualifying with an instance name?

1

Data attribute

2

Class attribute

24

Multiple Choice

What is the method that sets the value of the attribute?

1

Mutator method

2

Accessor method

25

Multiple Select

What are the 2 advantages of encapsulation?

1

Hides attributes from others

2

None of the above

3

Makes the class look more sophisticated

4

Allow validation before storing values

26

Multiple Choice

How many ways can you define a class in Python?

1

I can't

2

One way

3

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