SHASHANGKA SHEKHAR'S BLOG

Author, TechWriter

Boxing and Unboxing

Hits: 65

Boxing: Implicit conversion of a value type (int, char etc.) to a reference type (object), is known as Boxing. In boxing process, a value type is being allocated on the heap rather than the stack. Read More

Constructor

Hits: 191

Constructor is a special method of a class or struct.

When a class or struct is created, its constructor is called. Constructors have the same name as the class or struct, and they usually initialize the data members of the new object. Read More

Encapsulation VS Abstraction

Hits: 106

This is a bit confusing while both are like same, cause the definition  where abstraction is showing only necessary and the encapsulation is hiding complexity.

It’s seems that they are similar, but actually they’re not, here’s how they are differ:

Abstraction:

  1. Abstraction is a concept of hiding mechanism (কি লুকাব)
  2. Only showing those parts which is necessary.
  3. It is a thought process that is solve in design level.

Encapsulation:

  1. Encapsulation is the implementation of that concept(কিভাবে লুকাব)
  2. Hiding complexity.
  3. Here it is actual process of hiding that is solve in class level.

Read More

Constant VS Read-Only

Hits: 159

Dictionary Meaning:

The meaning of “Constant” is “Something that does not or cannot change or vary.”

What is Constant?

Constants are unchangeable value that do not change for the life of the program. Constants are declared with the const modifier.

constrn Read More

Accessor

Hits: 88

Dictionary Meaning:

The meaning of “Accessor” is “Someone or something that accesses”.

What is Accessor?

In C# programming, the accessor function is like getter accessor (get) and setter accessor (Set) functions. This is used to change the class member access label by set to public.

In OOP aspects as it provides an abstraction layer that hides the implementation details of functionality sets. Read More

Pages:123