public class Write
{
private void writesomething()
{
System.out.println("Title");
}
}
public class WriteOther extends Write
{
private void writesomething()
{
System.out.println("paragraph");
}
}
As the example I want to use same method but should write "title" and "paragraph" together. how implement that using java. its like hardware control fist method do controlling hardware. second method user extend and command hardware.