C
C#13mo ago
Reaushambeaux

✅ 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
Reaushambeaux13mo 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
daysleeper13mo ago
start by reading about properties in c# and relations (one-to-many, one-to-one, etc)
Zendist
Zendist13mo 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
Accord13mo 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
More Posts
.NET MAUI ImageSource from saved ByteArrayThis is currently how im trying to display 3 images from a sql query however im returning byte array✅ Member '<member name>' cannot be accessed with an instance reference```cs namespace palidromeDepth { internal class Program { static void Main(string[] ❔ Missing assembly reference using PackageReferenceI updated to package references a short while ago, now when I change development environments (git cUnsure when to load data .NET MAUII am trying to load the Ingredient value from my sqlite db and it doesnt load when im calling it wit✅ Modify embedded resources at runtimeIs there a way to modify an assembly's *own* embedded resources? I'm not looking into physically cha❔ Getting Identity from [Authorize]Hey there, since i'm using [Authorize] i thought i should be able to get UserID from var userId = H❔ Tasked with making a scheduling algorithm at summer internshipI'm an industrial engineering student that knows a bit of coding, but it seems like I've been given ❔ ✅ Search for specific value that is contained inside some variable while debugging VSWhen debugging a large project, I know that one of my many variables will contain a string valled "VIIS Worker (30%) and SQL Server (60%) High CPU usage.Currently hosting a website on iis (.net core 3.1). I have no clue as to why usage for both the iis ❔ Trying to make an app using rustI come from a background of asp net core, where I worked with the framework for over a year and has