If the base class has a public access and the derived class access specifier is public, the derived class member is ____.

A. public
B. private
C. blocked
D. protected


Answer: A

Computer Science & Information Technology

You might also like to view...

Answer the following statements true (T) or false (F)

1. Consider the class and struct definitions below. ``` struct myStruct { int i; double d; }; class myClass { int i; double d; }; myStruct a; a.i = 3; myClass b; b.i = 3; ``` 2. The concept of class is central to Object Oriented Programming. 3. A class type cannot be used in some ways that a built-in type can be used 4. In defining a member function whose declaration is in a class, you use the dot operator to specify that the member function being defined belongs in the class, as ``` class foo { public: // other members void output( ); // other members }; void foo.output( ) { /* whatever */ } ```

Computer Science & Information Technology

Which of the following statements is false?

a. A JavaFX GUI is defined as a scene graph—a tree structure of an app’s visual elements, such as GUI controls, shapes, images, video, text and more. b. Each visual element in the scene graph is a node—an instance of a subclass of Node (package javafx.scene), which defines common attributes and behaviors for all nodes in the scene graph. c. The first node in the scene graph is known as the origin. d. Nodes that have children are typically layout containers that arrange their child nodes in the scene.

Computer Science & Information Technology

Write a for-each loop that calls the addInterest method on each BankAccount object in a collection called accounts. What is required for that loop to work?

What will be an ideal response?

Computer Science & Information Technology

A ____ is a computer that stores and distributes information to the other computers in the network.

A. server B. client C. browser D. hub

Computer Science & Information Technology