Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Which of the following keyword is used to specify private members? A) public B) private C) protected D) friend 2. Which of the following

image text in transcribed
1. Which of the following keyword is used to specify private members? A) public B) private C) protected D) friend 2. Which of the following is the wrong prototype of overloading the subtraction operator? A) Volume operator-(double,double); B) double Volume::operator-(double); C) Volume Volume::operator-(volume); D) Volume operator-(Volume, Volume); 3. Which of the following is wrong? A) object is an instance of class B) each object belongs to only one class. c) a class can only have one object; D) the relation between class and object is much like that of data type and variable. 3. AC class is a class that has a virtual function. A) const B) public C) abstract D) friend 4. Which is the purpose of destructor? A) it is just a normal member function. B) initialize class C) initialize object D) free the occupied source 5. Given class A, how many times will the constructor be called when statement A array[3] is executed? A) 1 B) 2 C) 3 D) 4 6. Given class Myclass, which of following is to declare its copy constructor? A) Myclass&( Myclass x); B) Myclass(Myclass x); C) Myclass(Myclass & x); D) Myclass(Myclass *x)

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

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions