Help with Bibliographical Inheritance

Hey I’m trying to get through Bibliographical Inheritance and I’m currently at this part and I’m not at all sure what it’s asking me to do. They replaced all the C# curriculum with new stuff and all the videos to help you get unstuck are gone, so the forums are the only place i can get help.

Test your class! In Program.cs, construct a new Resource named test.

After constructing a new object, call the GetInfo() method. Additionally, call the UpdateStatus() method and print the value of test.Status.

Hello @beta5386609985, welcome to the forums!

From what I think you’re asking, the CC instructions want you to instantiate (create a new instance of) the Resource class, and call it text. Remember, to create an instance of a class, you follow this syntax:

ClassType InstanceName = new ClassType();

It then wants you to call some methods that belong to that class, which can be done with the following syntax:

InstanceName.method();

Lastly, it wants you to access a property of the object that you’ve just created, and print that value to the console.

Without a link to the lesson, it is difficult to provide more direct help, but I hope that was useful!

1 Like

Hey thank you so much for your help, my problem was that I was not getting that it was wanting me to to create a new object to test there.

1 Like