Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

Which mid-week day (non-weekend day) has the best sales?

Answered: 1 week ago

Question

What is the general trend across weekdays (Sunday to Saturday)?

Answered: 1 week ago

Question

Which month strikes you as the most interesting and why?

Answered: 1 week ago