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

Does the green tea have coffein ???
How to make money quickly
Who knows the book Rose Blanche
The coordinates of the vertices of ANGLE RST are R(-3,5), and S(4,5), and T(4,-2). Find the side lengths to the nearest hundredth and the angle measures to the
How is correct : "cus" or "cuz" ?
How to make money quickly
The coordinates of the vertices of ANGLE PQR are P(-3,3), Q(2,3), and R(-3,-4). Find the side lengths to the nearest hundredth and the angle measures to the nea
The coordinates of the vertices of ANGLE PQR are P(-3,3), Q(2,3), and R(-3,-4). Find the side lengths to the nearest hundredth and the angle measures to the nea
a store mixes red fescue worth $12 per pound and chewings fescue worth $16 per pound. The mixture is to sell for $15 per pound. Find out how much of each should
Does the green tea have coffein ???