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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started