Technical Discussion :: C++
Home > Freshers > Technical Interview Questions > C++
79. What is the use of constructor?
Answer:
Constructor is used to initialise class variable when object of class is created
Asked In :: TCS Virtusa Accenture
Constructor is used to initialise class variable when object of class is created
Constructor is used to initialise class variable when object of class is created
Constructor is used to initialise class variable when object of class is created
Constructor is used to initialise class variable when object of class is created
Constructor is used to initialise class variable when object of class is created