Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello! This is C++. Could you plaease answer these questions? Thank you and have a good one! 1. You can use the address operator (____)

Hello! This is C++.

Could you plaease answer these questions?

Thank you and have a good one!

1. You can use the address operator (____) to examine the memory address of a variable.

%

$

*

&

2. Object-oriented programs use ____ to carry out the same operation in a manner customized to the object.

inheritance

is-a relationships

polymorphism

methods

3. If you create a firstName string and initialize it to "Mary", and then use the C++ statement cout << firstName.substring(1,2);, the output is ____.

Mary

ar

Ma

empty because the program does not compile

4. When you create a class, you usually make the functions private.

True

False

5. In object-oriented programming, descendent classes can ____ all the attributes of the original (or parent) class, or they can override inappropriate attributes.

extend

inherit

implement

adopt

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 Security XI Status And Prospects

Authors: T.Y. Lin, Shelly Qian

1st Edition

0412820900, 978-0412820908

More Books

Students also viewed these Databases questions

Question

How does the Ohio statute define vehicular homicide?

Answered: 1 week ago