Computer Science, asked by babyforug, 8 months ago

write a program in java to print employee code ,employee I'd employee name​

Answers

Answered by Anonymous
1

Explanation:

Java is a class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. Wikipedia

Typing discipline: Static, strong, safe, nominative, manifest

First appeared: May 23, 1995; 25 years ago

Designed by: James Gosling

Stable release: Java SE 15 / September 15, 2020; 8 days ago

Developer: Oracle Corporation et al

Answered by BrainlyWeb
37

\mathtt{\mathbb{\underline{\red{ Required \;Programme:-}}}}

{\\Java

class Employee

{

public string name;

public int salary;

public int joiningDate;

public Employee()

{

}

public Employee(Karam, 40000, 11-04-2001)

{

this.name = karam;

this.salary =40000 ;

this.joiningDate =11-04-2001 ;

}

public void GetEmployeeData()

{

{

public void DisplayEmployee()

{

("The name of employee is: "+ Shiv);

Console.WriteLine("The salary of employee is: "+30000);

Console.WriteLine("The date of joining of employee is: "+16-06-2003);

}

}

public Employee(Shiv, 30000,16-06-2003 )

class Program

{

static void Main(string[] args)

{

Employee[] e = new Employee[10];

for(int i = 0; i < 10; i++)

for(int i = 0; i < 10; i++)

{

e].DisplayEmployee();

}

}

}

\mathtt{\mathbb{\underline{\green{ Required \;Output:-}}}}

\tt{Name: Karamchand}

\tt{SSN: 11-04-2001}

\tt{Salary : 40000}

_________________

\tt{Name: shiksha}

\tt{SSN: 16- 06-2003}

\tt{Salary : 30000}

_________________

Similar questions