OOPS Concept Interview Questions

Q1)When inheriting from a base class, whether the derived class inherits the destructor and constructor from the base class?
Ans)
No, On inheriting from a base class the derived class inherits the only the members - including the code except the destructor and constructor of the base class.
-------------------------------------------------------------------
Q2)What is Multi-Threading?
Ans)
Threading:
A thread is nothing more than a process.
The process sets up sequential steps, each step executing a line of code.
MultiThreading:
A multithreaded application allows you to run several threads, each thread runs in its own process.
So that you can run step1 in one thread and step 2 in another thread at the same time.