Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Which of these is not part of a class definition? a Name of the class b. class variables c. child class name d. class

1. Which of these is not part of a class definition?

a Name of the class

b. class variables

c. child class name

d. class methods

2. The process of using a class definition to create an object is called;

a. is-a

b. initializing

c. instantiating

d. constructing

e. newing

3. Private elements of a class cannot be accessed in any way

T/F

4. Which of the following statements most accurately defines the concept of encapsulation in object-oriented design?

a. Focuses on variables and passing of variables to functions

b. Ability of a class to derive members of another class as a part of its own definition

c. Allows for implementation of elegant software that is well designed and easily modified

d. Means of bundling instance variables and methods in order to restrict access to certain class members

5. This method name is automatically called when a class is being used to generate an object. The function typically sets default values or otherwise prepares the object for use.

a. __instantiate__

b.__init__

c. __str__

d. __object__

6. Encapsulation is a fundamental concept of Object-Oriented design. What type of function is used to obtain the value of a class variable, but not modify it?

a. accessor

b. retriever

c. mutator

d. constructor

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

More Books

Students also viewed these Databases questions