Code Monkey home page Code Monkey logo

cpe200-week8-hw's Introduction

Week 8 - Homework: Simple News Feed

This homework will help you learn how to solve problem with multiple Java classes.

The objectives of this week are following:

  • Programming abstraction of simple enrollment system.
  • Learn more about class composition relationship.
  • Using constructor to initialized class data type.
  • Using "this" and "super" keywords.

##Post Class

  • Base class for user post

##MessagePost Class

  • One of Post's subclasses.
  • Represent a message post which contains a single message for each post.

##PhotoPost Class

  • One of Post's subclasses.
  • Represent a photo post which contains filename of a photo and a caption for the photo.
  • the photo file must be .jpg or .png.

##NewsFeed Class

  • Represent a single news feed.
  • Each news feed contains multiple posts.
  • Each post can be message or photo.

##TestPost1 Class

  • A test program which gives a result as those stored in the "TestPost1-output.txt" file

To complete the homework you need to meet following requirements:

  • Output from the "TestPost1.java" program should be the same as or very similar to the output stored in the "TestPost1-output.txt".
  • Draw a class and object diagram showing the relationship among the classes and objects.

cpe200-week8-hw's People

Contributors

potikanond avatar dpotikan 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.