Giter Club home page Giter Club logo

soft-arch-bookstore's Introduction

bookstore

INSTRUCTIONS:

You have been presented with a description and purpose of the Interface Segregation Principle (ISP). You will need to understand this principle to successfully complete the lab work.

Try not to peek at the instructor solutions in "edu.wctc.isp.solution". If you get stuck or want to check if your solution is a good one, review the instructor's solutions.

ISP RULES: Clients should not be forced to depend on methods that they do not use.

THE CHALLENGE:

This lab includes an interface that breaks the Interface Segregation Principle (ISP).

For the first part, refactor the program in "edu.wctc.isp" to use two interfaces instead of one. Create two interfaces that properly segregate the methods of books versus music products.

For the second part, refactor your two-interface solution to allow for polymorphism. Remember that interfaces can extend other interfaces! Extract commonalities between music and books into a third interface. When you are finished, you should be able to create a List of the common interface type, and add hardcover books, paperback books, and vinyl albums to it.

soft-arch-bookstore's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.