sportsseolive7974 sportsseolive7974
  • 21-01-2020
  • Computers and Technology
contestada

A constructor: A. always accepts two arguments B. has return type of void C. has the same name as the class D. always has an access specifier of private

Respuesta :

flightbath flightbath
  • 22-01-2020

Answer:

Option (C)

Explanation:

A constructor is distinguished from other member functions of the class by having the same name as of its class. Otherwise, it will not be called a constructor. A constructor can have 0 or more passing arguments. A constructor never returns anything as they are used for default initialization of the variables of a class. Also, a private constructor cannot be instantiated so it is very rare for a constructor to be private.

Answer Link

Otras preguntas

5x +1=4x +7 What is x
Select the correct days. Gina tracks the low temperatures for a city over six days. Identify the days colder than -1.75°F.
I need help please and thanks Which best describes the Little Rock 9
HELP ME PLSS!! Oliver, Lily, and Ella are hoping to save money. Oliver thinks saving money in a shoe box in his closet every month is a good idea. He decides to
Giving brainliest!!!!!!!!!!!! Please be right
4) The path of a satellite orbiting the earth causes it to pass directly over two tracking stations A and B, which are 60 km apart. When the satellite is on one
A triangle has the points (2,3) (2,-5) (6,1) what is the area
do number 3 am giving brainliest look below
The measure of an angle is seven times the measure of its supplementary angle. What is the measure of each angle?
how do i get a refund? my son purchased this and I didn't authorize