Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Super {
- public int index = 1;
- }
- class App extends Super {
- public App(int index) {
- index = index;
- }
- public static void main(String args[]) {
- App myApp = new App(10);
- System.out.println(myApp.index);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement