Question: Don't know what I am doing wrong trying to create object UPLIPP YTIUPLILY APP. LUILILULLIVLELILI 2 using System; 3 namespace Property App 5 . 3
Don't know what I am doing wrong trying to create object
UPLIPP YTIUPLILY APP. LUILILULLIVLELILI 2 using System; 3 namespace Property App 5 . 3 references public class RealEstateInvestment int yearBuilt; double purchasePrice; string streetAddress; double monthlyExpense; double incomeFromRent; O references public static void DetermineMonthlyEarnings() Console.WriteLine("{0}", RealEstate Investment.yearBuilt); O references class Program O references static void Main(string[] args) RealEstateInvestment investi = new RealEstateInvestments investi.yearBuilt = 2005; double monthlyExpenses; monthlyExpenses = GetExpenses(); Console.WriteLine("{0}", monthlyExpenses); 1 reference public static double GetExpenses string avalue, bValue, cValue; double insurance, taxes, utilities; In: 5 Ch: 38 SPC CRLA File - 2 0 + | List re Solution - 2 Errors A4 Warnings of 11 Messages NY Build + IntelliSense "Code Description (X) CS0120 An object reference is required for the non-static field, method, or property 'RealEstatelnvestment.yearBuilt (X) CS0122_"RealEstatelnvestment.yearBuilt' is inaccessible due to its protection level A CS0414 The field 'RealEstatelnvestment.purchasePrice' is assigned but its value is never used A CS0414 The field 'RealEstatelnvestment.streetAddress' is assigned but its value is never used A CS0169 The field 'RealEstatelnvestment.monthlyExpense' is never used Acc010 The field 'DASIE-talossartsont inconv entioned Project Property App PropertyApp Property App PropertyApp Property App Program.cs Program.cs Program.cs Program.cs Program.cs Search Error List Line Suppression State 14 Active 23 Active 45 Active 46 Active 47 Active Draat DAS -- 40 Actie
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
