-
¿Qué es git? ¿Cuáles son sus características principales?
-
¿Para qué se utilizan los branch en git? Proporcione un ejemplo práctico y las instrucciones necesarias para hacerlo explicando cada una de ellas.
-
¿Qué es la Programación Orientada a Objetos? Explíquelo con sus palabras, y contrástelo con la programación estructurada.
-
Enumere y describa al menos cuatro conceptos relacionados a la programación orientada a objetos. Relaciónelos en una sola frase.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
require 'mechanize' | |
require 'csv' | |
START_URL = 'http://www.youtube.com/playlist?list=PLkuS0waF8krjwcRHzSJMq_nA67mCFi24T' | |
STDOUT.sync = true | |
agent = Mechanize.new | |
page = agent.get START_URL | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Punto { | |
private double x; | |
private double y; | |
Punto(double x, double y) { | |
this.x = x; | |
this.y = y; | |
} | |
double getX() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ar.edu.unlam.tallerweb; | |
public class Adivinanza { | |
private Integer numero; | |
public Adivinanza(Integer numero) { | |
this.numero = numero; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ar.edu.untref.lp1; | |
public class DiasLluviosos { | |
private int[] lluviasDiarias = new int[30]; | |
public void setLluviaDiaria(int dia, int lluviaDiaria) { | |
if (dia < 1 || dia > 30 ) { | |
throw new Error("El mes tiene entre 1 y 30 días"); | |
} | |
this.lluviasDiarias[dia - 1] = lluviaDiaria; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ar.edu.untref.pruebas; | |
public class Nota { | |
private int nota; | |
public Nota(int nota) { | |
if (nota >=0 && nota <=10) { | |
this.nota = nota; | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ar.edu.untref.pruebas; | |
public class CajaDeAhorros { | |
private String titular; | |
private double saldo = 0.0; | |
public CajaDeAhorros(String titular) { | |
this.titular = titular; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ar.edu.untref.pruebas; | |
public class Calculadora { | |
public int contarDivisores(int numero) { | |
if (numero <= 0) { | |
Error numeroNoValido = | |
new Error("El número debe ser mayor a cero"); | |
throw numeroNoValido; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function validarLargoCBU(cbu) { | |
if (cbu.length != 22) { return false } | |
return true | |
} | |
function validarCodigoBanco(codigo) { | |
if (codigo.length != 8) { return false } | |
var banco = codigo.substr(0,3) | |
var digitoVerificador1 = codigo[3] | |
var sucursal = codigo.substr(4,3) |