Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package tp1e10_Clases;
- public class Banco {
- private int Cuit;
- protected String Nombre_Banco;
- private String Descripcion_Banco;
- private int Nro_Clientes;
- private int Nro_Empleados;
- private String Sucursales;
- private String Estado;
- private String Horario_Atencion;
- public Banco() {
- }
- public Banco(int v_clientes, int v_empleados, String v_sucursales, String v_h_atencion) {
- if (v_clientes >1 && v_empleados>1){
- this.Nro_Clientes = v_clientes;
- this.Nro_Empleados = v_empleados;
- }else {
- System.out.println ("Valores no admisibles");
- this.Nro_Clientes = 10;
- this.Nro_Empleados = 10;
- }
- if (v_sucursales != "" && v_h_atencion != ""){
- this.Sucursales = v_sucursales;
- this.Horario_Atencion = v_h_atencion;
- }else {
- System.out.println ("Valores no admisibles");
- this.Sucursales = "No posee sucursales";
- this.Horario_Atencion = "8:00hs a 13:00hs";
- }
- }
- public void setAñadirEmpleado(int v_empleados) {
- if (v_empleados>0) {
- this.Nro_Empleados = this.Nro_Empleados + v_empleados;
- }
- }
- public void setAñadirCliente(int v_clientes) {
- if (v_clientes>0){
- this.Nro_Clientes = this.Nro_Clientes + v_clientes;
- }
- }
- public String getSucursales() {return this.Sucursales;}
- public String getHorarioDeAtencion() {return this.Horario_Atencion;}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement