Question: 1) In Objected Oriented Terminology, what is the relationship between instances, classes and objects? A)an object is an instance of a class B) instances, objects

1) In Objected Oriented Terminology, what is the relationship between instances, classes and objects?

A)an object is an instance of a class

B) instances, objects and classes are the same thing

C) a class is an object of an instance

D) instances are specific names for object classes

1)

The primary difference between classes and structures is that classes can have functions in them while structures cannot.

true/False

1)

Suppose I allocate an array of integers in C++ as follows

int *p = new int [20];

what is the proper line of code to free up this dynamically allocated space in C++?

A) delete []p;

B)delete [20] p;

C) free p;

D) delete p;

1) In C we used malloc() and free() to manage dynamic memory. Please select the two operators that are used in C++ for the same purpose (note you will need to select 2 answers )

free
create
calloc
delete
remove

new

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!