Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started