Programación orientada a objetos Capítulo 3 Interacción de objetos.

Slides:



Advertisements
Presentaciones similares
¿Qué hora es? What time is it?.
Advertisements

Telling Time in Spanish
-go Verbs There is a small but very important group of verbs that we call the -go verbs. These verbs are: Hacer: to make/do Poner: to put Decir: to say.
Time Flash cards The picture in the background is by Salvador Dalí and is called The Persistence of Memory (1931)
¿Qué hora es? ¿Cómo decimos la hora en español? Son las ______. Es la _______. Para decir la hora… How do we say the time in Spanish To tell time. It.
If anidados y Switch Prof. Lillian Bras.
Programación orientada a objetos
Telling Time (Cómo decir la hora). When we ask what time it is in Spanish, we say “¿Qué hora es?” Some people also say “¿Qué horas son?”
La Hora... Telling Time in Spanish. ¿Que hora es? The verb ser is used to express the time of day. Use es when referring to "one o'clock" and use son.
Telling time in Spanish: Explanation Practice exercise index.
Telling Time.
¿Qué hora es? Son las diez.
By Jami Sipe Telling Time ¿Qué hora es? : To ask what time it is, use: Es la una. Son las + hour. : To say it is one o’clock, use: one o’clock To give.
What time is it? DLT: I can tell time in Spanish..
To tell the time in Spanish… 3:15=Son las tres y quince. 11:20=Son las once y veinte. 6:04=Son las seis y cuatro. 1:30=Es la una y treinta 8:19=Son las.
¿Qué hora es? What time is it?.
¿Qué hora es?/ What time is it? There are several useful phrases for talking about the current time.
La hora. The traditional way to tell time in Spanish is by dividing the clock in half. The right side uses “y” to add minutes to the hour. Once the minute.
Telling Time (Cómo decir la hora). When we ask what time it is in Spanish, we say “¿Qué hora es?” Some people also say “¿Qué horas son?” (México y Centroamérica)
Department of Modern Languages. Gramática nueva When we ask what time it is in Spanish, we say “¿Qué hora es?” We reply… “Es la una…”
Telling Time (Cómo decir la hora). When we ask what time it is in Spanish, we say “¿Qué hora es?”
Es la una y dieciséis de la tarde. Son las dos y media de la mañana. Son las tres y cuarto de la tarde. Es el mediodía. Es la medianoche. Son las siete.
Español 1 18 y 19 de septiembre de  Escribe los meses que combinan con las estaciónes. (Write the months that match with the seasons.)  El otoño-
Telling Time La hora. Telling Time To ask what time it is in Spanish, ask: ¿Qué hora es? To answer: Es la una… (12:31 – 1:30) or Son las (hour). (1:31.
Keeps on tickin’, tickin’, tickin’… into the future.
Time in Spanish Nivel 1. Telling time inSpanish  Time is not TOO different in Spanish.  It is formatted the way time used to be told in English.  It.
Introducción a Tiempo by Sarah, Anna, Brandon, and Heidi.
/** * Write a description of class General here. */ public class General { // instance variables - replace the example below with your own private int.
Time Telling time is rather easy. You only need to know the numbers up to 59 to be able to tell the time.
Telling Time on the Hour If the hours are between 2 and 12, use “Son las …” Examples: 3:00 – Son las tres. 11:00 – Son las once. If the hour is within.
La Hora ( Telling Time). Here’s how it works! What time is it? What time is it? It’s ______ o’clock. It’s ______ o’clock. It’s 2 o’clock. It’s 2 o’clock.
¿Qué hora es? The third-person singular of ser is used with one o’clock since it is just one hour (hora) Es la una. The singular.
Octubre 7, Español 2: Cap. 2B pag. 110 Q: ¿Cuántos estudiantes hay en el salón de clases? ¿Dónde están? “Hay” means there is/ there are.
Telling Time. When we ask what time it is in Spanish, we say “¿Qué hora es?”
Cómo decir la hora. When we ask what time it is in Spanish, we say… “¿Qué hora es?”
Say the hour + y + the minutes passed. For a quarter of an hour – use “cuarto.” For half an hour – use “media.” Ejemplos: Es la una y diez. (1:10) Son.
La hora (Time on the clock) Telling time up to the half hour (0-30 minutes)
Telling Time (Cómo decir la hora). When we ask what time it is in Spanish, we say “¿Qué hora es?” Some people also say “¿Qué horas son?”
Please sit in your assigned seat. If you forgot your flashcards last time, get them out now. On the paper you picked up on the way in the door, silently.
When you tell time in Spanish you will use the verb SER. Note that you use es when it is one o’clock and son when it is any hour from two to twelve o’clock.
¿Qué hora es? What time is it? ¿Cómo decimos la hora en español?  Es la _______. Es is use for 1 o’clock only.  Son las ______. Son is used with all.
Telling time in Spanish ¿Qué hora es?. Talk about hours instead of o’clocks It is two o’clock It is 5 o’clock It is seven o’clock Son las dos horas Son.
La hora: Review. 1. Phrases related to telling time in Spanish are: a.¿Qué hora es?= What time is it? b.Son las + hour = It is… (used for every hour except.
¿Qué hora es? What time is it? Srta. Kudrak, Español I.
Avancemos 1 – Unidad 2 Lección 1
La hora Telling time en español Telling time ON the hour... Use this formula: Es la una (o’clock=En Punto) Son las (2-12)/(o’clock=En Punto).-It’s ?
What time is it? DLT: I can tell time in Spanish..
¿Qué hora es? What time is it?. ¿Cómo decimos la hora en español? Son las ______. (used with 2-12) It is __________. Es la _______. (used mainly with.
Telling Time in Spanish Por: Sra. Dickerson. To ask what time is it, you say: ¿Qué hora es? ¿Qué hora es?
La Hora (time) There are only 2 forms of Ser used for time: es and son Es is for one o’ clock Son is for ALL other hours of the day Time is normally feminine.
LICETH CAJAS 3RO ASI 26/10/2010. Es un lenguaje de programación diseñado para crear una amplia gama de aplicaciones que se ejecutan en.NET Framework,
Telling Time (Cómo decir la hora). When we ask what time it is in Spanish, we say “¿Qué hora es?”
INTRODUCCIÓN A LA PROGRAMACIÓN ORIENTADA A OBJETOS Objetos.
TELLING TIME IN SPANISH. What time is it? To ask what time it is, say “¿Qué hora es?”
Telling Time.
Programación orientada a objetos
Notes: La Hora (Time) How do I tell time in Spanish?
Calentamiento ¿Cuál es la fecha? ¿Qué te gusta hacer el sábado?
TELLING TIME IN SPANISH
Telling Time (Cómo decir la hora).
¿Qué hora es?.
¿Qué hora es?.
Los números.
Apuntes: La hora Lección 1: Hola, ¿Qué tal?.
Vámonos Complete and write out the following sentences. Try to translate them for a +3 on your pasaporte! Yo ___________________ (necesitar) mucho para.
Telling time.
Telling Time (Cómo decir la hora).
[C] Notas: ¿Qué hora es? P. 128
Telling Time (Cómo decir la hora).
Las Preguntas (the questions) Tengo una pregunta… Sí, Juan habla mucho con el profesor en clase. No, Juan no habla mucho en clase. s vo s vo Forming.
Transcripción de la presentación:

Programación orientada a objetos Capítulo 3 Interacción de objetos

3.2 Abstracción y modularización

3.5 Implementación de la pantalla del reloj

3.6 Diagramas de clases y diagramas de objetos Cuando una variable almacena un objeto, el objeto no se almacena directamente en la variable, lo que la variable contiene es una referencia al objeto

3.7 Tipos primitivos y tipos de objetos 3.8 ver código de ClokDisplay

Clase “NumberDisplay” public class NumberDisplay { private int limit; private int value; /** * Constructor for objects of class NumberDisplay. * Set the limit at which the display rolls over. */ public NumberDisplay(int rollOverLimit) { limit = rollOverLimit; value = 0; } public String getDisplayValue() { if(value < 10) { return "0" + value; } else { return "" + value; } /** * Set the value of the display to the new specified value. If the new * value is less than zero or over the limit, do nothing. */ public void setValue(int replacementValue) { if((replacementValue >= 0) && (replacementValue < limit)) { value = replacementValue; } /** * Increment the display value by one, rolling over to zero if the * limit is reached. */ public void increment() { value = (value + 1) % limit; } /** * Return the current value. */ public int getValue() { return value; }

*/ public class ClockDisplay { private NumberDisplay hours; private NumberDisplay minutes; private String displayString; // simulates the actual display /** * Constructor for ClockDisplay objects. This constructor * creates a new clock set at 00:00. */ public ClockDisplay() { hours = new NumberDisplay(24); minutes = new NumberDisplay(60); updateDisplay(); } /** * Constructor for ClockDisplay objects. This constructor * creates a new clock set at the time specified by the * parameters. */ public ClockDisplay(int hour, int minute) { hours = new NumberDisplay(24); minutes = new NumberDisplay(60); setTime(hour, minute); } Clase “ClockDisplay”

/** * This method should get called once every minute - it makes * the clock display go one minute forward. */ public void timeTick() { minutes.increment(); if(minutes.getValue() == 0) { // it just rolled over! hours.increment(); } updateDisplay(); } /** * Set the time of the display to the specified hour and * minute. */ public void setTime(int hour, int minute) { hours.setValue(hour); minutes.setValue(minute); updateDisplay(); } /** * Return the current time of this display in the format HH:MM. */ public String getTime() { return displayString; } /** * Update the internal string that represents the display. */ private void updateDisplay() { displayString = hours.getDisplayValue() + ":" + minutes.getDisplayValue(); }

3.9 Objetos que crean objetos

Parámetro formal parámetro actual

3.10 Constructores múltiples

Llamadas a métodos Internos 3.11 Llamadas a métodos

Llamada a métodos externos

Proyecto mail-system

Palabra clave “this”

3.13 Uso del depurador Establecemos el punto de interrupción, pulsando sobre el número de la línea

Glosario