what problem in this java code cant find the main, can you check code package EmployeePersonal; //create a Driver class public class Driver {       //Define main() method       public static void main(String[] args)       {             //create object for sub class "Employee"             Employee obj=new Employee();             //Call the super class member function setName() using object of sub class "Employee"             obj.setName("David");             //Call the super class member function setAge() using object of sub class "Employee"             obj.setAge(35);             //Call the super class member function setAddress() using object of sub class "Employee"             obj.setAddress("Chicago");             //Call the super class member function setPhone() using object of sub class "Employee"             obj.setPhone(25648713);             //Call the function to set employeeid             obj.setEmployeeID(100);             //Call the function to set department             obj.setDepartment("Plumbing");             //Call the function to set salary             obj.setSalary(15000);             //Call the function to display personal details             obj.diaplayPersonalDetails();             //Call the function to display employee details             obj.diaplyEmployeeDetails();       } }

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 20RQ
icon
Related questions
Question

what problem in this java code cant find the main, can you check code

package EmployeePersonal;

//create a Driver class

public class Driver {

      //Define main() method

      public static void main(String[] args)

      {

            //create object for sub class "Employee"

            Employee obj=new Employee();

            //Call the super class member function setName() using object of sub class "Employee"

            obj.setName("David");

            //Call the super class member function setAge() using object of sub class "Employee"

            obj.setAge(35);

            //Call the super class member function setAddress() using object of sub class "Employee"

            obj.setAddress("Chicago");

            //Call the super class member function setPhone() using object of sub class "Employee"

            obj.setPhone(25648713);

            //Call the function to set employeeid

            obj.setEmployeeID(100);

            //Call the function to set department

            obj.setDepartment("Plumbing");

            //Call the function to set salary

            obj.setSalary(15000);

            //Call the function to display personal details

            obj.diaplayPersonalDetails();

            //Call the function to display employee details

            obj.diaplyEmployeeDetails();

      }

}

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning