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

Answers were Sorted based on User's Feedback



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

Answer / suresh

const and reference members may only be initialized

Is This Answer Correct ?    15 Yes 4 No

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

Answer / saravana

new

Is This Answer Correct ?    5 Yes 8 No

Post New Answer

More OOPS Interview Questions

define oops concept with example

1 Answers   Cap Gemini,


What are the advantages of inheritance?

26 Answers   IBS, TCS,


Program to check whether a word is in all capital letters

1 Answers  


What is the main difference between C++ and Java

11 Answers   TCS,


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

0 Answers  






Why do while loop is used?

0 Answers  


What are the data types in oop?

0 Answers  


Name an advantage of array over linked list?

24 Answers   GML, IBM, Software Solutions,


Example for 4 pillar of oops like, Inheritance,Poly,Abstraction,Encabsulation ?

3 Answers  


What is use of overloading?

0 Answers  


WHAT'S THE OOPS BASIC OOPS CONCEPTS IN DOTNET

1 Answers  


what is a class

6 Answers  


Categories