When is it necessary to use member-wise initialization
list in C++?
Answers were Sorted based on User's Feedback
Answer / suresh
const and reference members may only be initialized
| Is This Answer Correct ? | 15 Yes | 4 No |
Write a c++ program to display pass and fail for three student using static member function
1.explicit call for destructor 2.calling function inside a constructor. 3.base *b-new derived delete b; 4.delete p what it will delete. 5.size of base class and derived class int i,in base class and int j in derived. 6.int i-20 int main() { int i =5; printf("%d".::i); { int i =10; printf("%d".::i); } } 7.object slicing 8.new 9.function overloading(return type). 10.class base() { virtuval fun() { ----- } } class derivied:public base() { fun() { ----- } } int main() { derived d; } 11.how static function will call in C++? 12.default structures are in C++? 13.constructors should be in public . 14.virtuval constructor not exist. 15.multilevel inhritence. destructor order.
Which keyword is written to use a variable declared in one class in the other class?
what is cast operator?
What type of loop is a for loop?
How long to learn object oriented programming?
Program to check whether a word starts with a capital letter or not.
What are the benefits of polymorphism?
why to use template classes in c++?
What are the 4 main oop principles?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
In which Scenario you will go for Interface or Abstract Class?
1 Answers InfoAxon Technologies,