Student Help; applying Implementation and Interface

How to create a 32-bit integer from eight (8) 4-bit integers?

How to Reset Passwords on Multiple Websites Easily?

Roman Numeral Treatment of Suspensions

Did Dumbledore lie to Harry about how long he had James Potter's invisibility cloak when he was examining it? If so, why?

Would a high gravity rocky planet be guaranteed to have an atmosphere?

What is the best translation for "slot" in the context of multiplayer video games?

Escape a mm/dd/YY backup date in a file name

Is there a good way to store credentials outside of a password manager?

Why not increase contact surface when reentering the atmosphere?

Avoiding estate tax by giving multiple gifts

What is the intuitive meaning of having a linear relationship between the logs of two variables?

Efficient way to transport a Stargate

Why doesn't table tennis float on the surface? How do we calculate buoyancy here?

Sort a list by elements of another list

Implement the Thanos sorting algorithm

Invade the Pyramid if you Dare

Why Were Madagascar and New Zealand Discovered So Late?

when is out of tune ok?

Increase performance creating Mandelbrot set in python

How to check is there any negative term in a large list?

Is this apparent Class Action settlement a spam message?

How can a function with a hole (removable discontinuity) equal a function with no hole?

How to be diplomatic in refusing to write code that breaches the privacy of our users

How to write papers efficiently when English isn't my first language?



Student Help; applying Implementation and Interface














0












$begingroup$


I need some help in doing one of my programming involving interface and implementations and would like them to be reviewed to ensure that I am using these concepts correctly. I am hoping to be able to pinpoint any possible mistakes made and fix any error.



this is the Interface, Online.



package online.services;

/**
*
* @author mammo
*/
public interface Online {
public double addOrUpdate();

public void remove();

public String get();

public double checkDuplicate();
}


and these are the classes which implements from the interface



package online.services;

/**
*
* @author mammo
*/
public class CustomerServiceImpl implements Online {

@Override
public double addOrUpdate() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

@Override
public void remove() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

@Override
public String get() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

@Override
public double checkDuplicate() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

}





package online.services;

/**
*
* @author mammo
*/
public class ProductServiceImpl implements Online {

@Override
public double addOrUpdate() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

@Override
public void remove() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

@Override
public String get() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

@Override
public double checkDuplicate() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

}




package online.services;

/**
*
* @author mammo
*/
public abstract class OrderServiceImpl implements Online {

@Override
public double addOrUpdate() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

@Override
public void remove() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

@Override
public String get() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}



}




package online.services;

/**
*
* @author mammo
*/
public class OrderItemServiceImpl implements Online {

@Override
public double addOrUpdate() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

@Override
public void remove() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

@Override
public String get() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

@Override
public double checkDuplicate() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

}


any criticism is welcomed, I would like to know if I am applying both Interface and implementation correctly her.









share







New contributor




dua student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$

















    0












    $begingroup$


    I need some help in doing one of my programming involving interface and implementations and would like them to be reviewed to ensure that I am using these concepts correctly. I am hoping to be able to pinpoint any possible mistakes made and fix any error.



    this is the Interface, Online.



    package online.services;

    /**
    *
    * @author mammo
    */
    public interface Online {
    public double addOrUpdate();

    public void remove();

    public String get();

    public double checkDuplicate();
    }


    and these are the classes which implements from the interface



    package online.services;

    /**
    *
    * @author mammo
    */
    public class CustomerServiceImpl implements Online {

    @Override
    public double addOrUpdate() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void remove() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public String get() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public double checkDuplicate() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    }





    package online.services;

    /**
    *
    * @author mammo
    */
    public class ProductServiceImpl implements Online {

    @Override
    public double addOrUpdate() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void remove() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public String get() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public double checkDuplicate() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    }




    package online.services;

    /**
    *
    * @author mammo
    */
    public abstract class OrderServiceImpl implements Online {

    @Override
    public double addOrUpdate() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void remove() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public String get() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }



    }




    package online.services;

    /**
    *
    * @author mammo
    */
    public class OrderItemServiceImpl implements Online {

    @Override
    public double addOrUpdate() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void remove() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public String get() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public double checkDuplicate() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    }


    any criticism is welcomed, I would like to know if I am applying both Interface and implementation correctly her.









    share







    New contributor




    dua student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.







    $endgroup$















      0












      0








      0





      $begingroup$


      I need some help in doing one of my programming involving interface and implementations and would like them to be reviewed to ensure that I am using these concepts correctly. I am hoping to be able to pinpoint any possible mistakes made and fix any error.



      this is the Interface, Online.



      package online.services;

      /**
      *
      * @author mammo
      */
      public interface Online {
      public double addOrUpdate();

      public void remove();

      public String get();

      public double checkDuplicate();
      }


      and these are the classes which implements from the interface



      package online.services;

      /**
      *
      * @author mammo
      */
      public class CustomerServiceImpl implements Online {

      @Override
      public double addOrUpdate() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public void remove() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public String get() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public double checkDuplicate() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      }





      package online.services;

      /**
      *
      * @author mammo
      */
      public class ProductServiceImpl implements Online {

      @Override
      public double addOrUpdate() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public void remove() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public String get() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public double checkDuplicate() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      }




      package online.services;

      /**
      *
      * @author mammo
      */
      public abstract class OrderServiceImpl implements Online {

      @Override
      public double addOrUpdate() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public void remove() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public String get() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }



      }




      package online.services;

      /**
      *
      * @author mammo
      */
      public class OrderItemServiceImpl implements Online {

      @Override
      public double addOrUpdate() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public void remove() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public String get() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public double checkDuplicate() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      }


      any criticism is welcomed, I would like to know if I am applying both Interface and implementation correctly her.









      share







      New contributor




      dua student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.







      $endgroup$




      I need some help in doing one of my programming involving interface and implementations and would like them to be reviewed to ensure that I am using these concepts correctly. I am hoping to be able to pinpoint any possible mistakes made and fix any error.



      this is the Interface, Online.



      package online.services;

      /**
      *
      * @author mammo
      */
      public interface Online {
      public double addOrUpdate();

      public void remove();

      public String get();

      public double checkDuplicate();
      }


      and these are the classes which implements from the interface



      package online.services;

      /**
      *
      * @author mammo
      */
      public class CustomerServiceImpl implements Online {

      @Override
      public double addOrUpdate() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public void remove() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public String get() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public double checkDuplicate() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      }





      package online.services;

      /**
      *
      * @author mammo
      */
      public class ProductServiceImpl implements Online {

      @Override
      public double addOrUpdate() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public void remove() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public String get() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public double checkDuplicate() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      }




      package online.services;

      /**
      *
      * @author mammo
      */
      public abstract class OrderServiceImpl implements Online {

      @Override
      public double addOrUpdate() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public void remove() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public String get() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }



      }




      package online.services;

      /**
      *
      * @author mammo
      */
      public class OrderItemServiceImpl implements Online {

      @Override
      public double addOrUpdate() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public void remove() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public String get() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      @Override
      public double checkDuplicate() {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
      }

      }


      any criticism is welcomed, I would like to know if I am applying both Interface and implementation correctly her.







      java object-oriented





      share







      New contributor




      dua student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      dua student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      dua student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 46 secs ago









      dua studentdua student

      1




      1




      New contributor




      dua student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      dua student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      dua student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer





          StackExchange.ifUsing("editor", function () {
          return StackExchange.using("mathjaxEditing", function () {
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
          });
          });
          }, "mathjax-editing");

          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "196"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          dua student is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodereview.stackexchange.com%2fquestions%2f216400%2fstudent-help-applying-implementation-and-interface%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          dua student is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          dua student is a new contributor. Be nice, and check out our Code of Conduct.













          dua student is a new contributor. Be nice, and check out our Code of Conduct.












          dua student is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Code Review Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodereview.stackexchange.com%2fquestions%2f216400%2fstudent-help-applying-implementation-and-interface%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          is 'sed' thread safeWhat should someone know about using Python scripts in the shell?Nexenta bash script uses...

          How do i solve the “ No module named 'mlxtend' ” issue on Jupyter?

          Pilgersdorf Inhaltsverzeichnis Geografie | Geschichte | Bevölkerungsentwicklung | Politik | Kultur...