Consider the Classes below that may be programmed by YouTube --User --Video --Comment The Class User...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Consider the Classes below that may be programmed by YouTube --User --Video --Comment The Class User can have an email and password as instance variables. Methods may include: change Password and subacribeTo The subscribe To method may take in another User object as a parameter Example User music fan = new User () User cool dude= new User () music fan.subscribeTo (cool_dude) Consider the Video class. It may have title and views as instance variables It may also have an addComment method that takes in Comment objects as a parameter Create UMI. diagrams for the User, Video, and Comment class Each class must have 5 instance variables and 5 methods At least one of each method per class must have another Class object as an instance variable Describe design of each class, and the choice your made regarding instance variables and methods 2 well written paragraphs per class should suffice Consider the Classes below that may be programmed by YouTube --User --Video --Comment The Class User can have an email and password as instance variables. Methods may include: change Password and subacribeTo The subscribe To method may take in another User object as a parameter Example User music fan = new User () User cool dude= new User () music fan.subscribeTo (cool_dude) Consider the Video class. It may have title and views as instance variables It may also have an addComment method that takes in Comment objects as a parameter Create UMI. diagrams for the User, Video, and Comment class Each class must have 5 instance variables and 5 methods At least one of each method per class must have another Class object as an instance variable Describe design of each class, and the choice your made regarding instance variables and methods 2 well written paragraphs per class should suffice
Expert Answer:
Answer rating: 100% (QA)
Answer Explanation i User class It hold the details of the user the name of the user will be in stri... View the full answer
Related Book For
Managerial Accounting
ISBN: 978-0697789938
13th Edition
Authors: Ray H. Garrison, Eric W. Noreen, Peter C. Brewer
Posted Date:
Students also viewed these accounting questions
-
A parallel system functions whenever at least one of its components works. Consider a parallel system of n components, and suppose that each component works independently with probability 1/2. Find...
-
The Smiths have two children. At least one of them is a boy. What is the probability that both children are boys? (See Gardner 1961 for a complete discussion of this problem.)
-
A number of costs are listed below that may be relevant in decisions faced by the management of Svahn, AB, a Swedish manufacturer of sailing yachts: Requirement 1 relates to Case 1, and requirement 2...
-
A woman flies from Phoenix to Denver (a distance of 800 mi) at a rate 40 mph faster than on the return trip. If the total time of the trip is 9 hrs, what was her rate going to Denver, and what was...
-
You own a portfolio consisting of the following stocks: align="center"> The risk-free rate is 4 percent. Also, the expected return on the market portfolio is 10 percent. a. Calculate the expected...
-
Valeria and Matias Rivera have been married for two years and have a 1-year-old son. They live in Richmond, Virginia, where Matias works for Software Solutions. He earns $6,000 per month, of which he...
-
How have families been affected by war and violence?
-
Find the interest rates, or rates of return, on each of the following: a. You borrow $700 and promise to pay back $749 at the end of 1 year. b. You lend $700 and receive a promise to be paid $749 at...
-
Identifya topic about leisure and social change/social justicethat you'd like to explore further (some examples are noted below). Find an article/essay/podcast/radio broadcast, etc. that resonates...
-
Lavare, located in the Chicago suburbs, is a major manufacturer of stainless steel sinks. Lavare is in the middle of the demand and supply planning exercise for the coming year. Anticipated monthly...
-
Prepare a written report on the transition from U.S. GAAP to IFRS, Metlife Europe limited for IFRS analysis and for us GAAP, i will be working with Metlife financial reports. Then, i should research...
-
xy Let f(x,y) = x, if (x, y) + 0 (0, if (x, y)=(0,0) a. Show that fis continuous at (0, 0). b. Show that(x, 0) = x V x, and c. Show that (0,0) # (0,0). If = th (0,y) = - =y\y. , find the value of n...
-
Consider the following narrative describing the Purchasing Process of a company: A purchasing clerk receives a purchase requisition from one of the company departments. They review the requisition,...
-
The following data were collected as part of a quality control study for the analysis of sodium in serum; results are concentrations of Na+ in mmol/L. 140 143 141 137 132 157 143 149 118 145...
-
The subset HC M(C) defined since it is closed under addition and multiplication, is in fact a subring. (a) Find a matrix for the inverse of x writ- ing for convenience |x| := az + a + a + az. It...
-
Early one morning it began to snow at a constant rate. At 7:00 A.M. a snowplow started to clear a road. By 8:00 A.M. it had traveled two miles but it took two more hours to go an additional two...
-
What is substantive law? Multiple Choice The code of conduct of government bodies The procedures followed by municipalities in creating ordinances The procedures followed by Congress to make statutes...
-
What did Lennox gain by integrating their WMS, TMS, and labor management systems?
-
Why arent transactions involving accounts payable considered to be financing activities?
-
Last month when Holiday Creations, Inc., sold 50,000 units, total sales were $200,000, total van- able expenses were $120,000, and fixed expenses were $65,000. Required: 1. What is the companys...
-
What is target costing? How do target costs enter into the pricing decision?
-
(a) Describe the effect of temperature on the equilibrium constant. (b) Industrial \(\mathrm{CH}_{3} \mathrm{OH}\) is prepared according to the reaction \[ \mathrm{CO}(\mathrm{g})+2...
-
Under atmospheric conditions the acetone-chloroform azeotrope boils at \(64.6^{\circ} \mathrm{C}\) and contains 33.5 mole per cent acetone. The vapour pressures of acetone and chloroform at this...
-
Explain in detail, with neat sketch, the working principle of a fuel cell in producing electrical energy from the chemical energy of a fuel.
Study smarter with the SolutionInn App