Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 1. 1. (TCO 2) A class and its members can be described graphically usin

ID: 3550882 • Letter: Q

Question










Question 1.1. (TCO 2) A class and its members can be described graphically using a notation known as the ____ notation. (Points : 4)       OON
      OOD
      UML
      OOP
A class and its members can be described graphically using a notation known as the notation. Suppose you have the following UML class diagram of a class. According to the UML class diagram, which function is public and doesn't return anything? Consider the following declaration. Which of the following may not be used as a class data member? Composition and inheritance are two fundamental ways of relating Which statement is correct regarding an object of a class that is declared as a data member of a different class? A(n) relationship represents composition. If the derived class does not override a public member function of the base class, you may specify a call to that public member function that has parameters by If class AClass is derived from class BClass, which one of the following statements correctly states the constructor call sequence when an object of class AClass is instantiated? Which of the following statements does not correctly describe inheritance?

Explanation / Answer

1.

Hence, the correct option is c.

2.

setTime(in setHours : int, in setMinutes : int, in setSeconds : int) : bool

Hence, the correct option is d.

3.

myObject is an object of the myClass. Therefore, call any function by using object name with dot(.) operator.

Syntax:

Objectname.function_name();

myObject.print(); is the correct method to call the function print().

Hence, the correct option is c.

4.

Namespace is a region that provides a scope to the identifiers.

Struct, class and arrays are declared as a data member of a class.

Hence, the correct option is c.

5.

Composition means an instance variable of one class are references to other objects.

Inheritance means deriving the properties from base class to sub-class.

Composition and inheritance are related to classes.

Hence, the correct option is a.

6.

An object of a class that is declared as data member of a different class and it may be declared as private, protected, or public.

Hence, the correct option is d.

7.

Composition (Has-A) mean the use of instance variable that references to other objects.

Hence, the correct option is a.

8.

Hence, the correct option is c.

9.

Hence, the correct option is c.

10.

Hence, the correct option is a.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote