ShmoopTube

Where Monty Python meets your 10th grade teacher.

Search Thousands of Shmoop Videos


Classes and Objects Videos 18 videos

AP Computer Science 4.4 Classes and Objects
175 Views

AP Computer Science 4.4 Classes and Objects. What is the return type of a mutator method?

AP Computer Science 1.1 Classes and Objects
468 Views

AP Computer Science: Classes and Objects Drill 1, Problem 1. Which of the following is a correct {/* Implementation */} for the isInsect method?

AP Computer Science 1.3 Classes and Objects
245 Views

AP Computer Science 1.3 Classes and Objects. Which of the following should be declared as a static variable?

See All

AP Computer Science 4.1 Classes and Objects 174 Views


Share It!


Description:

AP Computer Science 4.1 Classes and Objects. Which of the answers is the best definition of a postcondition?

Language:
English Language

Transcript

00:00

Hurry And here's your shmoop du jour brought to you

00:05

by the wealthy man who drove his car into a

00:07

tree You found out how the mercedes benz all right

00:12

let's take a look at our question which of the

00:14

bolo answers is the best definition of ah post condition

00:20

flavours All right we'll write up the bat we can

00:23

eliminate answer c We know that a post condition has

00:26

to do something with the aftermath of a situation We

00:29

know this from the latin root post Meaning after or

00:32

behind a post condition is an assertion about a piece

00:36

of code What should be true at the end of

00:39

it not necessarily what is true By the end we'll

00:42

post conditions are not always met Do tow bugs and

00:45

logic errors take a real life example You should always

00:48

follow the speed limit but no one actually does In

00:54

other words close conditions tell you what the code segment

00:57

is meant to achieve not what it actually achieves So

01:01

now let's Take a look at answer b d Any

01:03

differences air subtle but are important Answering the question well

01:06

he is talking about the output of the program referencing

01:09

console output that's usually produced by a code segment And

01:13

he references the actual effect of the code segment like

01:15

the variables it modifies and the actions it's completed All

01:20

right well we can see that be accurately describes our

01:22

definition of a post condition A statement of what should

01:25

be true after the code segment is run of such

01:29

a shame that everyone is fuming over the high cost 00:01:32.008 --> [endTime] of gas these days

Related Videos

AP Computer Science 1.2 GridWorld Case Study and APIs
493 Views

AP Computer Science 1.2 GridWorld Case Study and APIs. What is the direction of the actor?

AP Computer Science 1.4 Standard Algorithms
200 Views

AP Computer Science 1.4 Standard Algorithms. How many times will mystery be called for mystery(n) for n > 1?

AP Computer Science 2.3 Classes and Objects
191 Views

AP Computer Science 2.3 Classes and Objects. Which of the following is correct implementation of the Country class?

AP Computer Science 3.4 Inheritance, Abstraction, and Polymorphism
204 Views

AP Computer Science 3.4 Inheritance, Abstraction, and Polymorphism. Which of the following will satisfy the conditional if statement for boo, str,...

AP Computer Science 4.2 Standard Algorithms
191 Views

AP Computer Science 4.2 Standard Algorithms. What kind of algorithm is the following?