When declare method abstract can other non abstract methods access it

When declare method abstract can other non abstract methods access it

Answer:

This question is very tricky see example abstract class below:

package com.javahonk;

public abstract class AbastractClassTest {

	abstract public void method1();

	public void method2() {
		method1();
	}

}

 

As we know technically if you define abstract method means you can’t access anything that doesn’t exist — but it allowed to call.

Leave a Reply

Your email address will not be published. Required fields are marked *