How to handle exception in c++,
For example in a functions i am assigning memory to some
variables and also in next instructions in am dividing one
variable also.
If this functions generates a error while allocating memory
to those variable and also while dividing the variable if i
divide by zero then catch block how it will identify that
this error has cone from perticular instruction
No Answer is Posted For this Question
Be the First to Post Answer
What is solid in oops?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
I hv a same function name,arguments in both base class and dervied class, but the return type is different. Can we call this as a function overloading? Explain?
what is data hiding.
What is encapsulation selenium?
Tell me the scenario,Where we can use interfaces or Abstract class.And What is the difference between interfaces and abstract class?
OOP'S advantages of inheritance include:
What is new keyword in oops?
What are the three main types of variables?
What are the benefits of polymorphism?
When is an object created and what is its lifetime?
How would you stop a class from class from being derived or inherited.