Posts

Showing posts from February, 2024

Opposite

  1.Boxing : Boxing is the process of converting a value type to the  object  type / reference type 2.UnBoxing  : UnBoxing is the process of converting a  object  type / reference type  to the  value type 3.Stack : LIFO 4.Queue : FIFO 5. Serialization : Serialization is the process of converting the state of an object into a form (string, byte array, or stream) that can be persisted or transported. 6. Deserialization: Deserialization is the process of converting the serialized stream of data into the original object state.

C#DataStore

  1. Array : An array is  a collection of elements of the same type stored in the exact memory location .    2. ArrayList:   ArrayList is  a non-generic collection of objects whose size increases dynamically . It is the same as Array except that its size increases dynamically. An ArrayList can be used to add unknown data where you don't know the types and the size of the data. 3.

C#

 1. Constructor : A constructor is a special method with the same name as the class that is automatically called when an instance (object) of the class is created. It is used to initialize objects and    set initial values for fields. 2.Destructor : A destructor is a special method named with the class name prefixed by a tilde ( ~ ). For example, if the class is MyClass , the destructor would be ~MyClass . Destructors are called automatically by the garbage collector when an object is about to be destroyed and its memory is being reclaimed. destructors are not commonly used because the garbage collector automatically manages memory and releases resources

C#OOPS

  OOPS (Object-Oriented Programming) topics in C# Class : A class is a blueprint for creating objects. It defines the properties (data) and methods (functions) that objects of the class will have. Object : An object is an instance of a class. It contains real values instead of variables, and it has access to class methods. Inheritance : Inheritance is a mechanism in which a new class (derived class) is created from an existing class (base class). The derived class inherits the properties and methods of the base class. *Extension of Method Polymorphism : Polymorphism allows objects of different classes to be treated as objects of a common superclass. It enables methods to do different things based on the object that they are acting upon. *Single Entity which can be used in many Forms Encapsulation : Encapsulation is the bundling of data and methods that operate on the data into a single unit (class). It hides the internal state of an object from the outside world and only exposes t...