1 describe the conceptual model of a two-dimensional array


1. Describe the conceptual model of a two-dimensional array. Include in your explanation how a two-dimensional array might be used, why these arrays are similar to tables, and how to declare and initialize a two-dimensional array.

2. Given a two-dimensional array named number of three rows and four columns of type int, write the single code statement that will both declare and initialize the array such that the first row is initialized to 0, 1, 2, 3; the second row is initialized to 4, 5, 6, 7; and the third row is initialized to 8, 9, 10, 11.

3. Explain what constructors do and when they are executed. Explain the two types of constructors. Provide an example class that includes both types of constructor functions and demonstrate how an object would be instantiated using both types of constructors.

4. Explain the difference between a parameterized constructor and a default constructor. Provide an example class that includes both types of constructors.

5. Assume that a definition of class Automobile has two composite objects called myEngine of class Engine and myTransmission of class Transmission. If an object of Automobile is instantiated and then goes out of scope, list the sequence in which all constructors and destructors are called. Also, provide the explanation for why they are called in this sequence.

6. Without considering the access attributes, list and describe which base class members may not be inherited by a derived class and provide a rationale for why this is.

7. Without considering the access attributes, list and describe which base class members may not be inherited by a derived class and provide a rationale for why this is.

8. Describe what a preprocessor statement is, how it is used, and what part of the development environment it interacts with. Provide a syntactically correct example, describing what it does.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: 1 describe the conceptual model of a two-dimensional array
Reference No:- TGS01537279

Now Priced at $40 (50% Discount)

Recommended (97%)

Rated (4.9/5)