You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inteyes = 2; // All variables in an interface are public, static and final by default, so we don't need to use the abstract, public, static and final keywords here.
voidwalk();
// Cannot have a constructor in an interface because we cannot create an object of an interface. We can only create an object of a class that implements the interface.
// All methods in an interface are abstract by default, so we don't need to use the abstract keyword here. Also, we cannot have a method body in an interface method.