Java Program for Employee using Class and Object

preview_player
Показать описание
In Java, the most searching program is of employee . An employee is an entity that can have several attributes like id, name, and Selary, etc. In order to create a java employee program, we need to create a class for the employee entity and create properties of the employees.

Output:

Enter ID:-
10
Enter name:-
Roshan
Enter Selary:-
10000

ID=10
Name=Roshan
Selary=10000.0

#BackCoding
#java
#programming
#shorts
Рекомендации по теме
Комментарии
Автор

don’t forget to close scanner object:)

warhol
Автор

lol it is so amazingly stupid, to make constructor of Employee out of scanner

alekseysverbeev
Автор

Bro do the same Java important classes

dinesharts
Автор

Need to clear keyboard buffer after that nextInt

Firehornet
Автор

lovely by humans & not just AI only, & overcoming Programming & Coding.

startrekstarfleetlcars
Автор

variable = value

spacing is everything.

yqospgm
Автор

If i were to make this, i would have done everything in a main method *"public static void main(String[] args) {"* lol

virtueschan
Автор

When I put S2=S1
It's showing error as variable not declared in s2

AMOD
Автор

Bro took a whole minute while me:
name = input("name: ")
Id = input("Id: )
Salary = input("salary: ")

This is python btw

marcusbalingit
Автор

Can we take input in oops from uses 😢
And how do I learn to take input from user in oops??
I haven’t done such think in oops making class and object for employees

TechtalkAi
Автор

the worst moment of this video is: didn't make a "s2" variable...

podpishiknelisa
Автор

Can anyone explain me what is the purpose of making a scanner as parameter?

marky
Автор

Can u plz make a program in c++
Employee only use empid. And emp salary

Mukesh-
Автор

it took me a minute to find out what Scanner is for, well i code in JFrame so

lukasjetu
Автор

Bro how to get better at this coding do u have a video in mind

mentormytrade
Автор

how do you do that u want to code to and I wish I can learn that to

braydenmartinez-fisc
Автор

bro when implement there is error it is
Employee return type is missing

shaikabdulkalam