In Java Android:
Say, there is an interface:
interface RC
{
void Run();
void Turn(Boolean leftRight);
void Reverse();
void Stop();
void Launch();
}
How to mark the method Launch()
to be non mandatory implemented in an inherited class?
Getting that
class A implements RC{
//class A methods... + only 4 from RC
public void Run();
public void Turn(Boolean leftRight);
public void Reverse();
public void Stop();
// is not existed Launch
}