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

Write the word or phrase that best completes each statement or answers the quest

ID: 3578235 • Letter: W

Question

Write the word or phrase that best completes each statement or answers the question. To access files from a C++ program, you must include this header file: Write the statement to print the value of x in the 3rd item of the vector given the following code segment vector vec; struct second {int x;}; struct first (int a; second * secPtr;}; This is the formal name for the member function that changes the values of private values in classes. When a constructor function accepts no arguments it is called a constructor. If you do not declare an access specification, the default for members of a class is: Members of a class object are accessed with the operator, (name not symbol) This function is automatically called when an object is destroyed. Write the constructor definition (only) for the following call in main test test3(.90); This operator may be overloaded to assign one object to another (symbol please). When you dereference an object pointer and call one of its members, the preferred operator is the: The constructor function always has the same name as: This type of function is not a member of a class, but it has access to the private members of the class. Write the function prototype to overload the subtraction (-) operator for a Node class. Define how you would dynamically allocate a pointer to a Node class and assign it to a variable named nodcPtr. (assuming a Node class exists) What vector function is used to insert an item into a vector (at the back of the vector)? Describe one specific lessons learned that you learned from working on your programming assignments in this course (that you would not have learned from the book reading or lectures).

Explanation / Answer

Please find the answer-

28.#include <iostream>

30. "Friend function" is a member of class TWO and accesses the private data members abc and xyz of class ONE.  

31. Default constructor

32. private

33. scope resolution operator (::)

34. Destructor

36. assignment operator (=)

37. (*) and ->

38. Class

39. Friend Function

42. vector::push_back