how do u initialize the constant variables

Answer Posted / sachin

In Constructor Initialization list

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does enum stand for?

607


What is the problem with multiple inheritance?

582


Can you explain polymorphism?

578


Write a c++ program to display pass and fail for three student using static member function

2810


Can enum be null?

583






What is encapsulation in oops?

534


what are the ways in which a constructors can be called?

1581


What does I oop mean?

613


Why do while loop is used?

571


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1778


What is protected in oop?

602


What is polymorphism what is it for and how is it used?

572


What is oops in simple words?

577


what is difference between class template and template class?

2157


What is difference between multiple inheritance and multilevel inheritance?

601