Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone help me with these: 1. What is the difference between a friend function and a member function? a. Member functions in a derived

Can someone help me with these:

image text in transcribed

image text in transcribed

1. What is the difference between a friend function and a member function? a. Member functions in a derived class have access to the private variables of the base class Friends don't. b. All functions in base classes are friend functions for derived classes c. Member functions have access to the classes' private variables while friend functions need not be member functions (can be defined outside of the class) to have access to the private variables There is no difference All friends are members but not all members are friends d. e. 2. Assume that double precision floating point numbers are eight bytes each and the starting address of an array is 1002500 in a byte addressable memory. Assuming nPtr points to the beginning of the array, what address is in nPtr 8? a. 1002508 b. 1003012 ?. 1002564 d. 0 e. 1002516 nvolves using a -class pointer or reference to invoke functions on -class and -class objects a. Inheritance, Derived, Private, Derived, Base b. Polymorphism, Base, Virtual, Base, Derived C. OOP, Simple, Virtual, Friend, Base d. Polymorphism, Derived, Virtual, Base, Derived e. Inheritance, Base, Virtual, Base, Derived 4. The and of an operator cannot be changed by overloading the operator a. Distribution, arrangement, locality b. Meaning, style, panache c. Semantics, syntax, grammar d. Precedence, associativity, "arity" e. Look, feel, style 5. Which of the following is NOT a common type of exception a. Array out of bounds b. Division by zero C. Invalid input d. Invalid parameters e. Memory already in use 9

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_2

Step: 3

blur-text-image_3

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

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions