1. 126.
    0
    class Employee():

    def __init__(self,
    employeeName, taxDeductions=1, maritalStatus="single"):

    self. employeeName = employeeName
    self. taxDeductions = taxDeductions
    self. maritalStatus = maritalStatus

    demek varken ayni taku java ile

    public class Employee
    {
    private String myEmployeeName;
    private int myTaxDeductions = 1;
    private String myMaritalStatus = "single";

    public Employee(String EmployeName)
    {
    this(employeeName, 1);
    }

    public Employee(String EmployeName, int taxDeductions)
    {
    this(employeeName, taxDeductions, "single");
    }

    public Employee(String EmployeName,
    int taxDeductions,
    String maritalStatus)
    {
    this. employeeName = employeeName;
    this. taxDeductions = taxDeductions;
    this. maritalStatus = maritalStatus;
    }

    seklinde soyluyosun bende sana tek bisey soylemek istiyorum, ozet gec pic.

    edit: girintiler gibilmis.
    ···
   tümünü göster