Constructors in C#.NET Part 3 | Why Constructors are Needed in our class | Mr. Bangar Raju

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ม.ค. 2025

ความคิดเห็น • 40

  • @ketankulkarni427
    @ketankulkarni427 7 ปีที่แล้ว +19

    Sir, you have made me fallen in love with Dot net. Thank you so much for the videos. God bless you sir. #respect

  • @imadabab
    @imadabab 4 ปีที่แล้ว +4

    Best C# Tutorial ever. Thanks a lot Mr. Bangar.

  • @sidharthamohapatra6950
    @sidharthamohapatra6950 3 ปีที่แล้ว +2

    His voice is so clear even at 2X you can understand

  • @ShubhamVerma-dz4cu
    @ShubhamVerma-dz4cu ปีที่แล้ว

    Naresh Technology is a great class for C#

  • @shoaibullahferoz1560
    @shoaibullahferoz1560 10 วันที่ผ่านมา

    Awesome Explanation

  • @kunalshah4177
    @kunalshah4177 4 ปีที่แล้ว +6

    we should not learn just for interviews..clearning concepts is more important..

  • @Gauravkumar-jm4ve
    @Gauravkumar-jm4ve 3 ปีที่แล้ว

    Woww so much u cleared our concepts thank u so much Sir,please keep posting more vlogs like this

  • @pavankalyan2713
    @pavankalyan2713 2 ปีที่แล้ว

    great teaching ..loved it to the core

  • @manishavishwakarma5363
    @manishavishwakarma5363 7 ปีที่แล้ว +2

    Superb explanation ...

    • @daalwada
      @daalwada 5 ปีที่แล้ว +1

      Absolutely!

  • @rakeshkumaryadav1117
    @rakeshkumaryadav1117 2 ปีที่แล้ว

    Useful upto 8:00 minutes only, no need to watch full video

  • @GBSCronoo
    @GBSCronoo 6 ปีที่แล้ว

    Thank You! now i understand, i have been looking for the why for a long time and all ppl would tell me is to initialize variables and leave it at that i get it now ^_^!

  • @girishkemba3865
    @girishkemba3865 3 ปีที่แล้ว

    these tutorials are *bangar* xD
    Much needed for my classes.

  • @ashutoshsingh5568
    @ashutoshsingh5568 6 ปีที่แล้ว +5

    Nice way of teaching. But what you have said here that we can't initialize new values with implicit constructor is giving me some doubts. Here is my solution to this:
    Public Class Test
    {
    Public int x;
    }
    Class program
    {
    Static void Main(strung[ ] args)
    {
    Test T1 = new Test{ x=100};
    Test T2 = new Test {x=200};
    Console.WriteLine("X = "+T1.x);
    Console.WriteLine("X = ",+T2.x);
    Console.ReadLine( );
    }
    }
    By using above logic, we can initialize as many new values as we want by creating multiple instances of the class Test.

    • @ryuzaki6865
      @ryuzaki6865 2 ปีที่แล้ว +2

      1. Using this method you are not initializing values of "x", rather you are assigning new values to "x".
      The above is the same as-->
      Test T1 = new Test();
      Test T2 = new Test ();
      T1.x = 100;
      T2.x = 200;
      2. The only reason you're able to assign values to "x" using the above method is that "x" is declared as a "public" field inside Class "Test", if "x" was declared as a "private" or "protected" field you wouldn't have been able to do this.

  • @vineethrathna
    @vineethrathna ปีที่แล้ว

    top notch video

  • @saiadigoppula3599
    @saiadigoppula3599 6 ปีที่แล้ว +1

    my sir listen to your classes and he will teach to us

  • @vasanthad5509
    @vasanthad5509 4 หลายเดือนก่อน

    Great 👍👍👍👍👍🎉

  • @aruncm7168
    @aruncm7168 2 ปีที่แล้ว

    Nicely explained

  • @chandrasekhar.t6168
    @chandrasekhar.t6168 7 ปีที่แล้ว +1

    super guru ji

  • @shrirampv
    @shrirampv 2 ปีที่แล้ว +1

    Sir, they can be also changed using f1.x = 100, f2.x = 200, f3.x = 300 after instantiating. So, I think that we need constructors to instantiate variables with different values is incorrect, i think.

    • @nishantshrivastava8937
      @nishantshrivastava8937 หลายเดือนก่อน

      The only reason you're able to assign values to "x" using the above method is that "x" is declared as a "public" field inside Class "Test", if "x" was declared as a "private" or "protected" field you wouldn't have been able to do this.

  • @raziahmad2376
    @raziahmad2376 4 ปีที่แล้ว

    Great 👍👍👍

  • @daalwada
    @daalwada 5 ปีที่แล้ว

    Actually this video should be Part-2 and the types of Constructors should be Part - 3.

  • @top5things968
    @top5things968 2 ปีที่แล้ว

    THANK YOU SIR .

  • @sps7798
    @sps7798 5 ปีที่แล้ว +1

    sir we can also change the value of X for every instances by assigning like F2.X =200

    • @ryuzaki6865
      @ryuzaki6865 2 ปีที่แล้ว

      You won't be able to do that if "X" is defined as "private" or "protected".

  • @ashkumar8797
    @ashkumar8797 ปีที่แล้ว

    Thansk a lot.

  • @SivaKumar-mm8ng
    @SivaKumar-mm8ng 6 ปีที่แล้ว +5

    Hey can anyone please try to make a videos on Xamarin for iOS with C#

  • @mdfirojalam8334
    @mdfirojalam8334 ปีที่แล้ว

    Can create a static constructor inside non static class?

  • @mdfirojalam8334
    @mdfirojalam8334 ปีที่แล้ว

    Which constructor is called first default or static?

  • @darzeeshan9920
    @darzeeshan9920 7 ปีที่แล้ว +1

    ur videos are awesome....but plz tell me....can we use select statement in implicit cursor...I m a beginner

  • @ShubhamTiwari-mt7tz
    @ShubhamTiwari-mt7tz 4 ปีที่แล้ว

    Difference between object and instance?? Can anyone tell what is difference . It was asked in interview.

    • @kaustavchakraborty23
      @kaustavchakraborty23 ปีที่แล้ว

      Instance means copy at a certain level …object is the thing built from a blueprint ( from class )

  • @nileshkumaryadav612
    @nileshkumaryadav612 7 ปีที่แล้ว

    New video for asp dot net

  • @SoloTravelwish
    @SoloTravelwish 7 ปีที่แล้ว

    hi Mr.bangar raju you are not bangar raju i mean to say you are Mr.speed raju as your teaching speed is like bullet train.so try to take the subject slowly and very important clearly

    • @sanocycles6642
      @sanocycles6642 4 ปีที่แล้ว

      @siddhu salvi ha ha

    • @sanocycles6642
      @sanocycles6642 4 ปีที่แล้ว

      he is taking class slowly only

    • @munna7062
      @munna7062 3 ปีที่แล้ว

      Listen at 0.5 speed