Question: I need help with these questions in my object oriented programming class. An object is a/an _______ of a/an _______. An object is to a

I need help with these questions in my object oriented programming class.

An object is a/an _______ of a/an _______.

An object is to a class as a house is to a/an _______. Explain.

Describe what the keyword ~~**this**~~ refers to in C#. Discuss when you might want to (or need to) use it.

Study the code below.

public Employee MyEmployee;

identify what this code is/does using correct terminology.

identify each element of this code using correct terminology.

write similar code, given a description.

Study the code below.

this.MyEmployee = new Employee();

identify what this code is/does using correct terminology.

identify each element of this code using correct terminology.

write similar code, given a description.

Study the code below.

public bool AddEmployee(string firstName) { bool returnValue; if (firstName == null) { returnValue = false; } else { // Do employee adding stuff returnValue = true; } return returnValue; }

identify what this code is/does using correct terminology.

identify each element of this code using correct terminology.

write similar code, given a description.

Study the code below.

string name = "Samantha"; bool success = this.AddEmployee(name);

identify what this code is/does using correct terminology.

identify each element of this code using correct terminology.

write similar code, given a description.

Study the code below.

public decimal GiveEmployeeRaise(decimal salary, string reviewResult) { decimal result; if (reviewResult == "Excellent") { result = salary * 1.1; } else if (reviewResult == "Good") { result = salary + 100.00m; } else { result = salary + 1.00m; } return result; }

Given ~~**salary**~~ of 5000.00m, what would ~~**result**~~ be if ~~**reviewResult**~~ were Excellent, Good or Poor.

write an if statement similar to the above, given a description.

write mathematical expressions, including incrementing and basic math, given a description.

Identify your favorite two debugging techniques/features in Visual Studio and how/when you use each.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!