Why we define constructor in abstract class in java when we can't initialized it abstract class. Or how constructor of abstract class can used. Give an example

Why we define constructor in abstract class in java when we can't initialized it abstract class. Or how constructor of abstract class can used. Give an example

public abstract class TestR4R{

public TestR4R(){

 

}

public TestR4R(String str1 , String str2)

{

 

}

}

class Test extends TestR4R{

public Test(){

super();

}

public Test(String str1 , String str2){

super(str1,str2);

}

}

Read More →