how do u initialize the constant variables
Answer Posted / bibin joy
class A
{
const int mConstVal ;
A():mConstVal (10)
{
}
}
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What is the diamond problem in inheritance?
What is difference between oop and pop?
What is encapsulation oop?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What are the types of abstraction?
How to use CMutex, CSemaphore in VC++ MFC
What is the purpose of polymorphism?
Why interface is used?
Why do we need polymorphism in c#?
What do you mean by variable?
What is object in oop with example?
What is polymorphism oop?
How oops is better than procedural?
How is polymorphism achieved?