- Super keyword can be used to access the super class constructor from the subclass constructor.
- Super must be the first function in the subclass constructor.
- It is the first function to be executed in the subclass constructor.
- Super function will access the super class constructor according to the matching arguments.
- It can also be used to access the members of the Super class.
- When method overriding is done,then super can be used to access the overrided method of super class from subclass.
July 27, 2011
Use of super keyword in Java
Subscribe to:
Post Comments (Atom)
Connecting Java program to Database
It is very simple to establish a connection to the Database from a Java program Class.forName("com.mysql.jdbc.Driver...
-
It is very simple to establish a connection to the Database from a Java program Class.forName("com.mysql.jdbc.Driver...
-
Procedural languages are difficult to relate with the real world objects. Procedural codes are very difficult to maintain , if the code ...
No comments:
Post a Comment