DeVry GSP 125 Week 4 Discussion 1 & 2 latest

$12

Quantity:

Description

DeVry GSP 125 Week 4 Discussion 1 & 2 latest

dq 1

Inheritance and Notation (graded)

  • We discussed inheritance last week.Let us look deeper at the notation. How would you indicate the class being declared in C ? What does the colon indicate about a class in inheritance notation?
  • Does anyone know why the semicolon is needed after the curly bracket of a class? Does that semicolon have any side effects?
  • Can a struct inherit from a class? Can a class inherit from a struct?
  • What is the difference between a class and a struct? Is there a reason to make something a struct instead of a class?

dq 2

Facilitating Code Reuse (graded)

  • What technique can you use to facilitate the reuse of code? Discuss this technique in detail and provide an example.
  • What is DRY? What does object-oriented programming have to do with DRY?
  • Why would someone make a private (or protected) function in a class? Wouldn’t that limit code reuse? What would be the rationale for something like that?
  • Consider the following example.
  • structVector2{ float x, y;• };• structRectA{• Vector2 min, max;• };• structRectB:publicVector2{• Vector2 size;

};

What is the difference between RectA and RectB? What is the same in each one?

 

DeVry Courses helps in providing the best essay writing service. If you need 100% original papers for DeVry GSP 125 Week 4 Discussion 1 & 2 latest, then contact us through call or live chat.

DeVry GSP 125 Week 4 Discussion 1 & 2 latest

Best DeVry GSP 125 Week 4 Discussion 1 & 2 latest

DeVry GSP 125 Week 4 Discussion 1 & 2 latest