Procedural Oriented Programming Object Oriented Programming In procedural programming, program is divided into small parts called functions. Example code : #include <stdio.h>/*this function computes the absolute […]
Category: OOPs Interview Questions
How to call Constructor from another Constructor with same class in C# ?
Calling Constructor from another Constructor with same class There are two ways to do the above : 1. Use this keyword to acheive this . […]
Can one constructor call another constructor in C# ?
Yes. C# allows one constuctor to call another constuctor.
What is Construction Overloading in C#
Constructor Overloading Constructor oveloading enables to have constructors with different sets of parameters. Example below: public class Employee { public Employee() { // This […]
Question : State whether below overload methods will give compilation error or not ?
Question : State whether below overload methods will give compilation error or not ? Class Test { void SetX(ref int x) { x = 1; […]
