Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Inheritance Example

Language: Layout:
- ] Show input
Compilation time: 0.64 sec, absolute service time: 0,73 sec 
edit mode |  history  | discussion
Error(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