Run Code | API | Code Wall | Misc | Feedback | Login | Theme | Privacy | Patreon |
Inheritance ExampleError(s), warning(s): source_file.java:5: error: '{' expected class programmer extenal employee ^ source_file.java:8: error: ';' expected public static void main(string args[]) ^ source_file.java:10: error: <identifier> expected system.out.println("Programmer Salary is:"+p.salary); ^ source_file.java:10: error: illegal start of type system.out.println("Programmer Salary is:"+p.salary); ^ source_file.java:10: error: ')' expected system.out.println("Programmer Salary is:"+p.salary); ^ source_file.java:10: error: ';' expected system.out.println("Programmer Salary is:"+p.salary); ^ source_file.java:10: error: illegal start of type system.out.println("Programmer Salary is:"+p.salary); ^ source_file.java:10: error: ';' expected system.out.println("Programmer Salary is:"+p.salary); ^ source_file.java:11: error: <identifier> expected system.out.println("Bonus of programmer is:"p+bonus); ^ source_file.java:11: error: illegal start of type system.out.println("Bonus of programmer is:"p+bonus); ^ source_file.java:11: error: ')' expected system.out.println("Bonus of programmer is:"p+bonus); ^ source_file.java:11: error: ';' expected system.out.println("Bonus of programmer is:"p+bonus); ^ source_file.java:11: error: <identifier> expected system.out.println("Bonus of programmer is:"p+bonus); ^ source_file.java:13: error: class, interface, or enum expected } ^ 14 errors |
λ
.NET NoSQL database for rapid development
|