✅ Abstraction Final Project

So this is my first semester doing anything related to C# and I've kind of ridden coattails on other members of my group. I'm ashamed to say that I'm having to go back and relearn everything (a lot has happened). I'm afraid that I don't know where exactly where to start. My Final Project has 4 Programs in total, all involving Abstraction, Encapsulation, Inheritance, and Polymorphism. But right now, any advice on Abstraction, a refresher even, would be great! Scenario: You have been hired by a company that does product awareness monitoring by tracking the placement of their products in YouTube videos. They want you to write a program that can help them work with the tens of thousands of videos they have identified as well as the comments on them. Program Specification: Write a program to keep track of YouTube videos and comments left on them. As mentioned this could be part of a larger project to analyze them, but for this assignment, you will only need to worry about storing the information about a video and the comments. Your program should have a class for a Video that has the responsibility to track the title, author, and length (in seconds) of the video. Each video also has responsibility to store a list of comments, and should have a method to return the number of comments. A comment should be defined by the Comment class which has the responsibility for tracking both the name of the person who made the comment and the text of the comment. Once you have the classes in place, write a program that creates 3-4 videos, sets the appropriate values, and for each one add a list of 3-4 comments (with the commenter's name and text). Put each of these videos in a list. Then, have your program iterate through the list of videos and for each one, display the title, author, length, number of comments (from the method) and then list out all of the comments for that video. Repeat this display for each video in the list. Note: The YouTube example is just to give you a context for creating classes to store information. You will not actually be connecting to YouTube or downloading content in any way. Where would you start? Any tips or advice going forward?
4 Replies
Reaushambeaux
ReaushambeauxOP2y ago
actually. I might have an idea. Your program should have a class for a Video that has the responsibility to track the title, author, and length (in seconds) of the video. public class video { public void title() { Console.WriteLine("Title of Video"); } Something along those lines.
daysleeper
daysleeper2y ago
start by reading about properties in c# and relations (one-to-many, one-to-one, etc)
Zendist
Zendist2y ago
You would do your future-self a favor by failing the course and trying again. Or if you are capable of self-studying; find a YouTube series going from 0. The code you presented here indicates that you probably aren't in a good position to learn enough from a back-and-forth chat with us, yet.
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server