When is it necessary to use member-wise initialization
list in C++?

Answer Posted / suresh

const and reference members may only be initialized

Is This Answer Correct ?    15 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different oops concepts?

580


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6155


Can we create object of abstract class?

581


how to get the oracle certification? send me the answer

1672


When not to use object oriented programming?

572






IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1585


What is the main feature of oop?

624


Why do we use oops?

597


What is overloading in oops?

598


Give two or more real cenario of virtual function and vertual object

1858


What is destructor in oop?

627


What is constructor in oop?

591


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

944


What are the two different types of polymorphism?

677


Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.

704