C# Method Overloading

Method Overloading One of the key features of object-oriented programming is polymorphism. Polymorphism permits objects to behave in different ways according to the manner in which they are used. One part of polymorphism is the ability for a method to behave differently according to the types and number of parameters that are passed to it. This is achieved through method overloading. Method overloading allows the programmer to define many methods with the same name but with a different set of parameters. Each combination of parameter types is known as a signature of the method. When a call is made to … Click here to continue…..

Define Data Encapsulation?

Data Encapsulation combines data and functions into a single unit called Class. When using Data Encapsulation, data is not accessed directly; it is only accessible through the functions present inside the class. Data Encapsulation enables the important concept of data hiding possible. Encapsulation, also known as data hiding, is an important object-oriented programming concept. It is the act of concealing the functionality of a class so that the internal operations are hidden, and irrelevant, to the programmer. With correct encapsulation, the developer does not need to understand how the class actually operates in order to communicate with it via its … Click here to continue…..

What is OOPS concepts?

Object Oriented Programming Languages & Systems. Everything in the world is an object. The type of the object may vary. In OOPS, we get the power to create objects of our own, as & when required. OOPs is the new concept of programming ,parallel to Procedure oriented programming.It were introduced in late 80’s.It consider the programming simulated to real world objects.It help in programming approach in order to built robust,user friendly and efficient software and provide the efficient way to maintain real world software. Encapsulation: It is the mechanism that binds together code and data in manipulates, and keeps both … Click here to continue…..

What is Boxing and UnBoxing?

Boxing is implicit conversion of ValueTypes to Reference Types (Object). Boxing a value type packages it inside an instance of the Object  reference type. This allows the value type to be stored on the garbage collected heap. Boxing is conversion from value type to object(reference) type. Actually the copy of value type copied from stack to heap memory. Boxing Conversion

Unboxing Conversion UnBoxing is explicit conversion of Reference Types (Object) to its equivalent ValueTypes. It requires type-casting. Unboxing extracts the value type from the object. In this example, the integer variable i is boxed and assigned to object o. … Click here to continue…..