Question: In Java programming Question 4: Create a class Developer with fields: age, salary, first name, last name and id. Add two constructors (no argument constructor
In Java programming Question 4: Create a class Developer with fields: age, salary, first name, last name and id. Add two constructors (no argument constructor and constructor with parameters to initialize the object fields age, salary, first name, last name and id). regular methods getAge(), setAge(age), getSalary(), setSalary(Salary), getName(), setName(firstName, Lastname) and getID(), setID(id). A static field that contains total number of Developers A static method that prints total number of Developers Write the main method to test all these functionalities
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
