adplus-dvertising
frame-decoration

Question

Which syntax among the following is correct for public member functions?

a.

public::void functionName(parameters)

b.

public void functionName(parameters)

c.

public(void functionName(parameters))

d.

public:-void functionName(Parameters)

Answer: (b).public void functionName(parameters)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which syntax among the following is correct for public member functions?