Documentos de Académico
Documentos de Profesional
Documentos de Cultura
FORM1
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HerenciaProducto
{
public partial class Form1 : Form
{
Bien[] B = new Bien[50];
Servicio[] S = new Servicio[50];
int Cb, Cs;
public Form1()
{
InitializeComponent();
}
}
}
}
CLASE PRODUCTO
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HerenciaProducto
{
public class Producto
{
protected string Codigo;
protected string Nombre;
protected string Unidad;
protected double Precio;
public void ingresar_datos()
{ }
public double retornar_precio()
{ return Precio; }
public string retornar_nombre()
{ return Nombre; }