Interview Question: Explain Open – closed Object Oriented Design Principle with program and example. What is benefit of using Open closed principle? NOTE: To answer
Problem statement: If C# Interface and abstract class in a program, both contains only method declaration (C# source code shown below) then what would be
Answer: Test cases for Sum(int a, int b) method. Positive Cases: Only int data type is accepted: Need to test if Sum () method accept
What is smart pointer and implementation of Smart pointer in C++. This simple smart pointer implementation in C++ is asked in technical interview to know if
Factory method in C++ Interview question description: What approach you will follow to delete pointers returned by Factory method design pattern in C++ in main
C# downcast object method preference Interview Question : In below program, 2 methods to downcast object has been given. Explain which C# downcast method is
Answer: Explanation of Up-casting and Down-casting in C# inheritance with program examples. C# Up-Casting An assignment of derived class object to a base class reference
C++ std::queue example – Program will include example of functions queue push , front, pop and size. Queue stores data in FIFO ( First in
Answer: the order of execution of constructor and destructor call in c# inheritance: The constructor call is from top to bottom i.e. from base class
Answer: Difference between do while and while loop in C programming: do…while loop guaranteed to execute at least one time whereas while loop does not.