- "13.0.0.0.0", This Town Needs Guns
- "Scorn", Primitive Man
- "Pelos Trópicos", Andreia Dias
- "True North", Bad Religion
- "This World is Dead", Blockheads
- "That Day Last November", Our Ceasing Voice
- "Target Earth", Voivod
This file contains hidden or 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 figura; | |
| public class Circulo extends Figura { | |
| private double raio; | |
| public Circulo(double raio) { | |
| this.raio = raio; | |
| } |
This file contains hidden or 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 Carrinho | |
| def initialize | |
| @itens = [] | |
| end | |
| def incluir(produto) | |
| @itens << ItemCarrinho.new(produto) | |
| end | |
| def remover(produto) |
This file contains hidden or 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 Bola | |
| def initialize(cor) | |
| @cor = cor | |
| end | |
| attr_accessor :cor | |
| end |
This file contains hidden or 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 exercicio01; | |
| public class Bola { | |
| private String cor; | |
| public Bola(String cor) { | |
| this.cor = cor; | |
| } | |
| public String getCor() { |
This file contains hidden or 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 exercicio06; | |
| public class TV { | |
| public static final int PRIMEIRO_CANAL = 1; | |
| public static final int ULTIMO_CANAL = 60; | |
| private boolean ligada; | |
| private int canal; | |
| private int volume; | |
This file contains hidden or 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 exercicio06; | |
| public class TV { | |
| public static final int PRIMEIRO_CANAL = 1; | |
| public static final int ULTIMO_CANAL = 60; | |
| private boolean ligada; | |
| private int canal; | |
| private int volume; | |
This file contains hidden or 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
| public class Numero { | |
| public long fatorial(long n) { | |
| if (n == 0) | |
| return 1; | |
| return n * fatorial(n - 1); | |
| } | |
| } |
This file contains hidden or 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
| Lista 1 de orientação a objetos | |
| ------------------------------- | |
| Utilizando TDD, elabore, em Java e em Ruby, os programas a seguir, utilizando | |
| orientação a objetos: | |
| 1) Crie uma classe que modele uma bola e permita trocar e consultar a cor da bola. A | |
| cor da bola é obrigatória. |
This file contains hidden or 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
| # Arquivo fatorial_spec.rb | |
| require './fatorial' | |
| describe 'fatorial' do | |
| it 'calcula fatorial' do | |
| fatorial(0).should == 1 | |
| fatorial(1).should == 1 | |
| fatorial(2).should == 2 | |
| fatorial(3).should == 6 |