1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
marta [7]
4 years ago
12

Suppose that bClass is a class. Which of the following statements correctly derives the class dClass from bClass? a. class dClas

s:: protected bClass { //classMembersList }; b. class dClass:: public bClass { //classMembersList }; c. class bClass: public dClass { //classMembersList }; d. class dClass: private bClass { //classMembersList };
Computers and Technology
1 answer:
DerKrebs [107]4 years ago
4 0

Answer:

The answer to the given question is option "d".

Explanation:

In C++ programming language we use the (:) colon to perform inheritance in the class. The by default access modifier is used for inheritance that is "private". In the given options the option d is correct and other options are not correct that cab be described as:

  • In option, a, b we use the scope resolution operator (::) that is not used for inheritance.
  • In option, c we inherit drive class to base class that is not correct.  

That's why the answer to this question is option "d".

You might be interested in
ASAP PLS I DON T HAVE ENOUGH TIME
velikii [3]

Answer:

The font-style property allows you to make text appear italicized (i.e. sloped, or slanted).

em {

 font-style: italic;

}

Explanation:

This property accepts one of three possible values: normal, italic, and oblique.

If a given font family has an italic or oblique face embedded, the browser will select that face. If no italic or oblique face is available, the browser will mimic the sloping effect. If italic is defined and there is no italic face available, the browser will look for an oblique face before it tries to mimic the italic. The same applies to oblique; it too will look first for an italic face.

To prevent the browser from adding a mimicked, or synthesized, version of the italic or oblique face, you may use the font-synthesis property (if supported).

8 0
2 years ago
The ________ stage of a project involves such activities as forming a team, allocating resources, preparing project documentatio
marysya [2.9K]

Answer:

b. organizing

Explanation:

In the organising stage of a program life cycle involves such activities as forming a team, allocating resources, preparing project documentation, and ensuring good communication.

The organising stage can also comprise of the following activities;

1) To properly Organise and prepare a project.

2) Typically it involves conducting research and making use of its results to design a prototype or service for testing.

3) Here there is also nees to prepare and implement a schedule

4) Identifying the targets within the project

5) Distributing the tasks and resources to the team

6) Adjusting the members of the project team as needed

6 0
4 years ago
Function Name: d2x Parameters: int, int Returns: string Description: Write function, d2x, that takes as input a nonnegative inte
Marina CMI [18]

Answer:

I am writing a Python program. Let me know if you want the program in some other programming language.

#definition of function d2x which takes two parameters v: which is a non #negative integer and x which is an integer between 2 and 9. this method #returns string of digits that represents the base-x representation of v

def d2x(v,x):

   remainder = v%x  

   if v<=1:

       return str(v)

   else:

       return str(d2x(v//x,x)) + str(remainder)

 

v= int(input("Enter a non negative integer: "))

x= int(input("Enter an integer between 2 and 9: "))

print(d2x(v,x))

Explanation:

I will explain the code line by line.

def d2x(v,x) This is the definition of function d2x which takes two parameters v: which is a non negative integer and x which is an integer between 2 and 9. This method returns string of digits that represents the base-x representation of v.

Now lets take an example to understand the working of this function.

Suppose the value of v = 10 and x = 2.

remainder = v%x  takes the mod of v and x which returns the remainder of the division of v by x. So v%x = 10 % 2 = 0. So remainder = 0.

if v<=1 This if condition checks if the value of v is less than or equal to 1. This is false because v=10 and 10 is greater than 1. If v is 1 or less than return str(v)  will return the value of v as it is i.e. 10.

Since the IF condition is false so the else part will execute which has the following statement: return str(d2x(v//x,x)) + str(remainder)

This calls the d2x function recursively. Here v is divided by x successively until the quotient of v divided by x is 0. On each successive division, the remainder is the new most significant digit. In v//x, the double slash is called floor division or integer division which we use as both v and x are integers. So using recursion the above statement becomes:

str(d2x(v//x,x)) + str(remainder)

str(d2x(10//2,2) + str(0)

d2x(5,2) + (0)

Now d2x will again be called recursively to perform the division and this successive division continues until quotient of v divided by x is 0. Here str() method is used returns the result in the form of string.  So v%x is the number which is added to the end of resultant number. v//x is the recursive portion which keeps using the answer of the previous binary number. This means 10 in base 2 calls convert(5,2), then adds 0 at the end. So when v//x=5 and v%x=0 So the answer is 1010.

At the end v= int(input("Enter a non negative integer: "))

x= int(input("Enter an integer between 2 and 9: "))  these two statement wills take integer input from user and print(d2x(v,x)) calls d2x method and print the result.

6 0
3 years ago
In bankruptcy, most of a debtor’s assets will probably be used to repay unsecured debt
Juli2301 [7.4K]
This is true. A person in debt could have everything from their home to vehicles to even boats and other possessions taken in order to make up for the money owed. 
5 0
4 years ago
Why is Thomas Jefferson considered an accomplished man , or a Renaissance man?​
lesantik [10]
The term “Renaissance man” means for a very clever person to be good at many different things.
4 0
3 years ago
Other questions:
  • What will be displayed after the following statements have been executed? int x = 15, y = 26, z = 32; x = x + 12; y = y/6; z -=
    15·1 answer
  • How do I give extra points on Brainly
    6·2 answers
  • The is a global information system logically linked together by a globally unique address space based on the Internet Protocol o
    5·1 answer
  • The ____ command is used to disconnect a datatable object from the database. (
    15·2 answers
  • List two advantages and two disadvantages of Satellite Based<br> Augmentation Systems
    8·1 answer
  • What is a secondary storage medium that uses magnetic techniques to store and retrieve data on disks or tapes coated with magnet
    6·1 answer
  • Select three advantages of cloud computing.
    12·1 answer
  • Write down the different types of testing with their definition.
    11·1 answer
  • What is one thing we should avoid doing when summarizing a storyline or event in a review?
    10·1 answer
  • Parts of a computer software
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!