Skip to content

Instantly share code, notes, and snippets.

@dnivra26
Created June 4, 2019 07:35
Show Gist options
  • Save dnivra26/d5896ceec8f43132d762b2ceccda9bf2 to your computer and use it in GitHub Desktop.
Save dnivra26/d5896ceec8f43132d762b2ceccda9bf2 to your computer and use it in GitHub Desktop.
package com.dnivra26;
interface Time {
public void setTime();
public int getTime();
}
interface Alarm {
public void setAlarm();
public void getAlarm();
}
interface Radio {
public void setRadio();
public void getRadio();
}
class AlarmClock implements Alarm {
@Override
public void setAlarm() {
//actual function
}
@Override
public void getAlarm() {
// return alarm
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment