Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Aimez La page sur Facebook
- Page Name : Langage C
- Page Link : www.facebook.com/MOBY.c00
- */
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace pageFace
- {
- class Salarie
- {
- static private int nbrSalarie = 0;
- public static int NbrSalarie
- {
- get { return Salarie.nbrSalarie; }
- }
- private int matricule;
- private char statut;
- private string service;
- private string nom;
- private double salaire;
- public Salarie()
- {
- nbrSalarie++;
- }
- double CalculSalaire()
- {
- return this.salaire * 12;
- }
- void Affichage()
- {
- Console.WriteLine("nom : " + this.nom + "\tmatricule : " + this.matricule + "\tservice : " + this.service);
- Console.WriteLine("status : " + this.statut + "\tsalaire : " + this.salaire);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment