* This class describes a tweet. A tweet has a message in it, a unique ID, * a count of the number of likes, and a count of the number of times it * has been retweeted. In addition, the Tweet class will have a static * variable to count the total number of tweets to ever be created * (retweets don't count as a new tweet). * * You may NOT import any library class. * *  * */ public class Tweet { /** * This constructor creates a tweet with the given message. * Assume that the message is not null because only the tweet() method * from the TwitterUser class will call this constructor. There are * no length requirements on Tweets. * * The very first tweet to ever be created will have an ID of 0, the * next one will have 1, and so on and so forth. It may help you to use * the static count variable to set the ID. * * You will have to initialize other instance variables appropriately. * @param message the text of the tweet */ public Tweet(String message) { throw new UnsupportedOperationException("Implement this"); /** * Makes appropriate changes in the instance variables to reflect that * this tweet has been liked. */ public void like() { throw new UnsupportedOperationException("Implement this"); } /** * * @return the ID of this tweet */ public long getID() { /** * * @return the text of this tweet */ public String getText() { throw new UnsupportedOperationException("Implement this"); } /** * * @return the number of likes this tweet has received */ public long getNumLikes() { throw new UnsupportedOperationException("Implement this"); } /** * * @return the number of times this tweet has been retweeted */ public long getNumRetweets() { throw new UnsupportedOperationException("Implement this"); } /** * * @return the total number of tweets to ever be created */ public static long getNumTweets() { throw new UnsupportedOperationException("Implement this"); } }

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

/**
* This class describes a tweet. A tweet has a message in it, a unique ID,
* a count of the number of likes, and a count of the number of times it
* has been retweeted. In addition, the Tweet class will have a static
* variable to count the total number of tweets to ever be created
* (retweets don't count as a new tweet).
*
* You may NOT import any library class.
*

*
*/
public class Tweet {

/**
* This constructor creates a tweet with the given message.
* Assume that the message is not null because only the tweet() method
* from the TwitterUser class will call this constructor. There are
* no length requirements on Tweets.
*
* The very first tweet to ever be created will have an ID of 0, the
* next one will have 1, and so on and so forth. It may help you to use
* the static count variable to set the ID.
*
* You will have to initialize other instance variables appropriately.
* @param message the text of the tweet
*/
public Tweet(String message) {
throw new UnsupportedOperationException("Implement this");


/**
* Makes appropriate changes in the instance variables to reflect that
* this tweet has been liked.
*/
public void like() {
throw new UnsupportedOperationException("Implement this");
}


/**
*
* @return the ID of this tweet
*/
public long getID() {


/**
*
* @return the text of this tweet
*/
public String getText() {
throw new UnsupportedOperationException("Implement this");

}

/**
*
* @return the number of likes this tweet has received
*/
public long getNumLikes() {
throw new UnsupportedOperationException("Implement this");
}

/**
*
* @return the number of times this tweet has been retweeted
*/
public long getNumRetweets() {
throw new UnsupportedOperationException("Implement this");
}

/**
*
* @return the total number of tweets to ever be created
*/
public static long getNumTweets() {
throw new UnsupportedOperationException("Implement this");
}
}

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 4 images

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education