Trying to return a price

Hi i have two classes artworks, artists. I'm trying to get the artwork price information and make a method that returns it.

 public decimal GetPrice() { return price; } 

but because the method is not static i can't call that method from another class. When i try to make it static it tells me that it needs a object reference

by barcemo via /r/csharp

Leave a Reply