4
Answers

child class constructor

hello I have a question for inheritance between two classes. I create a parent class "contribuable" and another child class "utilisateur", then I put a constructor for the parent class but when I insert a constructor in class child it shows me this error "Error 1 'contribuable' does not contain a constructor that takes 0 arguments contribuable.cs"
 
 
ublic utilisateur()
{
}
}
public class contribuable
{
public string MATRICULE_FISCALE, ADRESSE_PERSONEL, ADRESSE_SIEGE, E_MAIL, TYPE_CLIENT, ACTIVITE_PRINCIPALE,
ACTIVITE_SECONDAIRE, REGISTRE_COMMERCIAL, BANQUE1, AGENCE1, RIB1, BANQUE2, AGENCE2, RIB2, DATE_SAISIE,
NOM_ENTREPRISE, Nom_Contribuable_Physique, Prenom_Contribuable_Physique, Nom_Contribuable_Forfaitaire,
Prenom_Contribuable_Forfaitaire, NOM_GERANT, PRENOM_GERANT, ADRESS_PERSONNEL_GERANT, MAIL_GERANT;
public int NUM_TEL1, NUM_TEL2, NUM_FAXE, NUM_MOBILE, NUM_TEL_GERANT, MOBILE_GERANT,CIN_GERANT;
public contribuable(string _matricule_fiscale,int _num_tel1, int _num_tel2, int _num_faxe,int _num_mobile,string _adresse_personel,string _adresse_siege,string _e_mail,string _type_client,string _activite_principale,string _activite_secondaire,string _registre_commercial,string _banque1,string _agence1,string _rib1,string _banque2,string _agence2,string _rib2,int _cin,string _date_saisie)
{
this.MATRICULE_FISCALE = _matricule_fiscale;
this.NUM_TEL1 = _num_tel1;
this.NUM_TEL2 = _num_tel2;
this.NUM_FAXE = _num_faxe;
this.NUM_MOBILE = _num_mobile;
this.ADRESSE_PERSONEL = _adresse_personel;
this.ADRESSE_SIEGE = _adresse_siege;
this.E_MAIL = _e_mail;
this.TYPE_CLIENT =_type_client;
this.ACTIVITE_PRINCIPALE = _activite_principale;
this.ACTIVITE_SECONDAIRE = _activite_secondaire;
this.REGISTRE_COMMERCIAL = _registre_commercial;
this.BANQUE1 = _banque1;
this.AGENCE1 = _agence1;
this.RIB1 = _rib1;
this.BANQUE2 = _banque2;
this.AGENCE2 = _agence2;
this.RIB2 = _rib2;
this.CIN_GERANT = _cin;
this.DATE_SAISIE = _date_saisie;
}
 
is - what the child constructor can not create an empty constructor without parent calsse? 
 
 
 
 

Answers (4)