when super add by constructor in java
/* superclass Person */
class Person
{
Person(int i)
{
System.out.println("Person class Constructor");
}
}
/* subclass Student extending the Person class */
class Student extends Person
{
Student()
{
// invoke or call parent class constructor
super();
System.out.println("Student class Constructor");
}
}
/* Driver program to test*/
class Test
{
public static void main(String[] args)
{
Student s = new Student();
}
}
Also in Java:
- double parse jtextfield
- java script num toSting syntax eror
- java random number generator in range
- java nested loop
- java check if args is empty
- jquery set data attribute value
- java convert String to int
- java methods
- java fileinputstream
- array null pointer java
- remove item from arraylist in java
- read lines of file randomly java
- how to have a only number type in java
- imagesbutton how to set background
- entre clavier java
- how to print in java
- Don't use a line-beased input after a token-based input.
- non primitive data types in java
- find frequency of each word in a string in java
- how to make an object move with arrow keys in java
- java create window
- how to use lambda in java
- how to scan a character in java
- count word in string no matter the delimiter java