Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Compile and Execute C# Sharp Online

using System.IO;
using System;

class Personne
{
    private string nom , prenom ;
    private int date ;
    private enum status = {"Marié","Célibataire","Veuf","Divorcé"};
    private char sexe ;
    private status st;
    
    public Personne(string n , string p, int d , char s , string st){
        this.nom = n;
        this.prenom = p;
        this.status = st;
        this.sexe = s;
    }
    
    public  getNom(){
        return(nom);
    }
    
    public getPrenom{
        return(prenom);
    }
    
    public getSexe(){
        return(sexe);
    }
    public getDate(){
        return(Date);
    }
    
    public getStatus(){
        return(status);
    }
    
    public setNom(string a){
        this.nom = a;
    }
    public setPrenom(string a){
        this.prenom = a;
    }
    
    public setSexe(char a){
        this.sexe = a;
    }
    public setStatus(string s){
        this.status=s;
    }
    
    
    
}

static void Main()
    {
        Console.WriteLine("Hello, World!");
    }

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.