In C++, what is a constructor, destructor?
Submitted by: AdministratorIn C++
Constructor:This is a member of class which involkes when the object is created.Purpose of constructor is to intialise the objects with required values.
Destructor: It is a member of class which involkes when the object is out of scope.The purpose of destructor is to clear the heap memory.
Submitted by: Administrator
Constructor:This is a member of class which involkes when the object is created.Purpose of constructor is to intialise the objects with required values.
Destructor: It is a member of class which involkes when the object is out of scope.The purpose of destructor is to clear the heap memory.
Submitted by: Administrator
Read Online Hardware and Software Design Job Interview Questions And Answers
Top Hardware and Software Design Questions
☺ | Explain Difference between RISC and CISC? |
☺ | What is a Turing machine? |
☺ | What is binary search, traversal, hashing? |
☺ | Explain Memory taken for char *, int * etc.? |
☺ | How does the browser know to go to a certain IP address when you enter a domain like globalguideline.com? |
Top PC Hardware Categories
☺ | Motherboard Interview Questions. |
☺ | Basic Computer Interview Questions. |
☺ | Embedded Systems Interview Questions. |
☺ | A + (Plus) Hardware Interview Questions. |
☺ | Computer Architecture Interview Questions. |