TrabalhosGratuitos.com - Trabalhos, Monografias, Artigos, Exames, Resumos de livros, Dissertações
Pesquisar

ALUGA BUGGY

Trabalho Escolar: ALUGA BUGGY. Pesquise 860.000+ trabalhos acadêmicos

Por:   •  16/5/2014  •  1.791 Palavras (8 Páginas)  •  356 Visualizações

Página 1 de 8

DESENVOLVIMENTO DIAGRAMA DE CLASSE

1 - Diagrama de Classe

MODELO CONCEITUAL

2 - Diagrama Modelo Conceitual – brModelo

3º FN

CREATE TABLE CLIENTE (

cod_cliente int PRIMARY KEY,

cnh string,

telefone string,

nome_cliente string,

rg string,

cpf string,

endereco string

)

CREATE TABLE RESERVA (

cod_reserva int PRIMARY KEY,

data_reserva date,

data_retirada date,

data_devolucao date,

valor_reserva float,

cod_cliente int,

num_buggy int,

FOREIGN KEY(cod_cliente) REFERENCES CLIENTE (cod_cliente),

FOREIGN KEY(num_buggy) REFERENCES BUGGY (num_buggy)

)

CREATE TABLE BUGGY (

num_buggy int PRIMARY KEY,

tipo string,

modelo string,

ano date,

cod_tipo int,

FOREIGN KEY(cod_tipo) REFERENCES TIPO_BUGGY (cod_tipo)

)

CREATE TABLE TIPO_BUGGY (

desc_tipo string,

valor_tipo float,

cod_tipo int PRIMARY KEY

)

MODELO LÓGICO

Figura 3 - Diagrama Modelo Lógico – brModelo

IMPLEMENTAÇÃO DAS CLASSES EM C#

class Cliente

{

// Atributos

private int cod_cliente;

private string nome_cliente;

private string telefone;

private string cnh;

private string rg;

private string cpf;

private string endereco;

private List<Reserva> reserva;

// Propriedades

public int cod_Cliente {

get { return cod_cliente; }

set { cod_cliente = value; }

}

public string nome_Cliente {

get { return nome_cliente; }

set { nome_cliente = value; }

}

public string Telefone {

get { return telefone; }

set { telefone = value; }

}

public string Cnh {

get { return cnh; }

set { cnh = vlaue; }

}

public string Rg {

get { return rg; }

set { rg = value; }

}

public string Cpf {

get { return cpf; }

set { cpf = value; }

}

private string Endereco {

get { return endereco; }

set { endereco = value; }

}

public List<Reserva> Reserva {

get { return reserva; }

set { reserva = value; }

}

// Métodos

public void cadastrar()

{

}

public void alterar()

{

}

public void excluir()

{

}

public void pesquisar()

{

}

}

// -------------------------------------------------

...

Baixar como (para membros premium)  txt (5.9 Kb)  
Continuar por mais 7 páginas »
Disponível apenas no TrabalhosGratuitos.com