Constructor in C++ | Types | OOPs in C++ | Lec-17 | Bhanu Priya

Поділитися
Вставка
  • Опубліковано 18 вер 2024

КОМЕНТАРІ • 103

  • @nripendrasingh8685
    @nripendrasingh8685 6 років тому +14

    i think this is wrong. you can not write "cout

  • @khyatisharma5449
    @khyatisharma5449 3 роки тому +7

    4. type of constructor is a dynamic constructor.

    • @fantomdelex6327
      @fantomdelex6327 2 роки тому

      maybe

    • @rajbhardwaj2180
      @rajbhardwaj2180 2 роки тому +2

      It’s not type it’s the thing that this constructor can be called at the run time or execution time and value can be modified

    • @r__nithin__b__king7128
      @r__nithin__b__king7128 2 роки тому +1

      @@rajbhardwaj2180 tq bro... it's the def of dynamic constructor Naa...

    • @rajbhardwaj2180
      @rajbhardwaj2180 2 роки тому

      @@r__nithin__b__king7128 yeah

  • @tirupanaikbanavathu7091
    @tirupanaikbanavathu7091 4 роки тому +4

    Excellent explained madam

  • @mysterieuxknowledgefun4298
    @mysterieuxknowledgefun4298 4 роки тому +4

    My qns is that why do we require to know about constructor and how can we get data value from the user

  • @hariviswanadh_K
    @hariviswanadh_K 6 років тому +6

    Ur way if explanation is good
    Could u explain with more examples

  • @dids2004
    @dids2004 Рік тому +1

    super good!!! helped a lot thanks all good4u

  • @raghuveer3886
    @raghuveer3886 6 років тому +8

    Fantastic!!! mam , You are doing a great job !!
    Tutorials are very useful for beginners ...

  • @shanmugapriya9873
    @shanmugapriya9873 3 роки тому +3

    Tq mam clear explanation 🙏

  • @georgeallan9220
    @georgeallan9220 3 роки тому +1

    Many thanks re info on contructor types

  • @kishorekumarthuta6654
    @kishorekumarthuta6654 5 років тому +9

    Mam..where is the reference used...as u said in the definition...Ur explaination for copy constructor is wrong..may u have to refere it once again...

  • @dasariraviteja7835
    @dasariraviteja7835 5 років тому +2

    Mam very good explanation

  • @AR_0751
    @AR_0751 2 роки тому

    cout

  • @surajanand4460
    @surajanand4460 5 років тому +7

    Read before teaching -Wrong Concepts about Copy Constructor .Read default usage of copy constructor and assignment operator by compiler and then enter into user defined copy constructor and assignment operator

  • @meganathans7823
    @meganathans7823 5 років тому +2

    Very useful mam... thanks mam

  • @ningappasonnad3023
    @ningappasonnad3023 Рік тому

    Fentastic madam ur teaching well

  • @hindihub483
    @hindihub483 5 років тому +7

    Your example is wrong in the sense to access the private member from main()

  • @gourabbistu9426
    @gourabbistu9426 7 місяців тому

    00:03 Constructor is a special function with the same name as the class, used to construct and initialize all data members.
    02:23 Constructor in C++ sets the data members public and can be defined inside or outside the class definition.
    04:44 Constructor in C++ is a special function with the same name as the class, automatically called when an object is created.
    07:01 Demonstrating the default constructor with no parameters
    08:58 Parametrized constructor initializes data members with parameters
    11:33 Explaining types of constructors in C++.
    14:02 Copy constructor in C++ allows one object of a class to be initialized to another object.
    16:33 Constructors in C++ allow for different ways of object initialization.

  • @farihafaiz9474
    @farihafaiz9474 2 роки тому

    Thank you mam apny bhttttt acha smjhaya
    Mam apny constructor overloading , inheritance,n-capsulation pr bi videos banaye h to plz link da dyeee or agr ni banaye to plz video bana dyeeee q k ap bhttttt acha smjhaty h

  • @futurecivilengineer7931
    @futurecivilengineer7931 Рік тому

    After 5 year😊 love you maam ❤

  • @govindprajapati5524
    @govindprajapati5524 5 років тому +1

    In default constructor Int side won't excute it will give error of private data

  • @chakravarthygoud6388
    @chakravarthygoud6388 5 років тому +1

    thanks for ur love

  • @ashutosh4273
    @ashutosh4273 2 роки тому +1

    In default constructor I think int side should be inside public: ...

  • @ayeshashaikh5039
    @ayeshashaikh5039 5 років тому +6

    What is reason behind using constructor. We can also do intialization of variable without constructor.

    • @anujyadav02
      @anujyadav02 3 роки тому

      No you can not initialize variable without constructor.

  • @nidhimavijaynti1880
    @nidhimavijaynti1880 Рік тому

    Thanks for this video ☺️

  • @SaranSuhas
    @SaranSuhas 5 років тому +1

    Your teaching is Nice..

  • @Rishabh_1176
    @Rishabh_1176 2 роки тому

    Best video

  • @athipanathipan517
    @athipanathipan517 4 роки тому +2

    I want more about OOPs

  • @shaikbhai1507
    @shaikbhai1507 2 роки тому

    Noise teaching madam

  • @AAK7702
    @AAK7702 Рік тому

    tq mam

  • @kuldipsinhsolanki6960
    @kuldipsinhsolanki6960 2 роки тому

    Helpfull video💫

  • @jeetundaviya9147
    @jeetundaviya9147 4 роки тому +3

    You can't excess private class members by dot operator

    • @debassss
      @debassss 2 роки тому +1

      @yes! .... you good student , you good answer, you good eyes!

  • @sanyuktasharma1166
    @sanyuktasharma1166 6 років тому +4

    ma'am constructor's defination can be declare inside the class??

  • @jazeerabbas2889
    @jazeerabbas2889 3 роки тому

    Thank you teacher..

  • @dharmrajkushwaha8624
    @dharmrajkushwaha8624 5 років тому

    best explained video

  • @allthepublic6782
    @allthepublic6782 2 роки тому

    What you have taking aaaa...aaa
    Like abstract in your concept

  • @bsrikanth4231
    @bsrikanth4231 5 років тому

    I have unstd very well madam

  • @gbguru657
    @gbguru657 Рік тому

    In default constructor example u have given wrong u r calling side that is not declared inside main or above main when creat object in default constructor it will directly call directly call to the class function.please check example in compiler it will show error..

  • @parveenmomin1176
    @parveenmomin1176 4 роки тому

    Tq mum

  • @frustoo
    @frustoo 6 років тому

    U deserve more

  • @BswapnaReddy
    @BswapnaReddy 4 місяці тому

    Showing error with copy constructor
    It's showing object2 is not declared or defined

  • @nagendrasinghjhala480
    @nagendrasinghjhala480 2 роки тому +1

    just one question i think c.side is wrong you cannot access private data members like that,instead it should be c.cube so you can access member function....clear me over here please anyone

    • @gbguru657
      @gbguru657 Рік тому +1

      It will invalid use of cube when u use c.cube in cout just declare
      Cube c;
      It will call directly and it will execute

  • @honeyusman7746
    @honeyusman7746 5 років тому

    thanks mam

  • @suryaprakashs1663
    @suryaprakashs1663 4 роки тому +2

    In default constructor side is a private data member and how can you access that outside the class in main function

    • @shivagarg6460
      @shivagarg6460 3 роки тому

      right bro,shed has done that by mistake.

  • @sujathamude6869
    @sujathamude6869 3 роки тому

    Default construction explanation is wrong , int side is in private , then how you are accessing In main like c.side, it will give error right ?

  • @nivyamukkati3910
    @nivyamukkati3910 5 років тому

    V helpful

  • @AIMBOT-tj1ke
    @AIMBOT-tj1ke 3 роки тому

    Nice

  • @hanuradha6850
    @hanuradha6850 3 роки тому +1

    What is c plus plus

  • @ramyamaduthuru5189
    @ramyamaduthuru5189 5 років тому

    Nice and do the videos on c language

  • @MBBALAJINAIDU
    @MBBALAJINAIDU 4 роки тому

    i can able to understand quickly

  • @vivekbisht1057
    @vivekbisht1057 5 років тому

    variable int side will come in the public access.

  • @sajjadakhtar3808
    @sajjadakhtar3808 3 роки тому +4

    ma'am I'm from Pakistan and I like your lecture so much.

    • @mg_blueboygaming4490
      @mg_blueboygaming4490 3 роки тому +11

      Does Pakistan have same education content like India😅

    • @abhileswar
      @abhileswar Рік тому +2

      @@mg_blueboygaming4490
      This is c++ so concept same

    • @kingz9967
      @kingz9967 Рік тому

      @@mg_blueboygaming4490 are u dumb or what 🤦🏾‍♂️

    • @kingz9967
      @kingz9967 Рік тому

      @@mg_blueboygaming4490 are u dumb or what 🤦🏾‍♂️

    • @kingz9967
      @kingz9967 Рік тому

      @@mg_blueboygaming4490 are u dumb or what 🤦🏾‍♂️

  • @jeel7373
    @jeel7373 2 роки тому

    ❤️❤️❤️

  • @tirupanaikbanavathu7091
    @tirupanaikbanavathu7091 4 роки тому

    All classes with example

  • @rahulsharmapandit9275
    @rahulsharmapandit9275 5 років тому

    Pls make videos on java ... Mam

  • @kabiraggarwal9151
    @kabiraggarwal9151 5 років тому +7

    wrong explanation of copy constructor..

  • @venkiaarya3018
    @venkiaarya3018 4 роки тому

    Mam nice explaination kani chat koni video lo correct ga place chey andhi neynu video vittu rasthunnanu maa

  • @sajjadakhtar3808
    @sajjadakhtar3808 3 роки тому

    default constructor pa phir sa video bna da ais ma default constructor ki samaj nhi ai si .ma'am default constructor ma(~) yeh wla sign nhi use hota

  • @musakaleem2064
    @musakaleem2064 4 роки тому

    why we cannot write const cube instead of class cube

  • @ashokrathod5067
    @ashokrathod5067 3 роки тому

    Seems like you are confused with the parameter and copy constructor

  • @alokraj2300
    @alokraj2300 3 роки тому

    ❤️

  • @rohith1856
    @rohith1856 2 роки тому

    Output of copy constructor?

  • @praginraj__767
    @praginraj__767 3 роки тому

    😊

  • @varshitmungi4335
    @varshitmungi4335 Рік тому

    Did thanos snap in the middle of the video?

  • @vaishnavipatil9451
    @vaishnavipatil9451 5 років тому

    it should be c.cube

  • @SandeepSingh-li4yh
    @SandeepSingh-li4yh 5 років тому +1

    It is very difficult to hear your voice mam👂🙏

  • @MuhammadAfzal-pl2sp
    @MuhammadAfzal-pl2sp 4 роки тому

    Play list link please?

  • @anmolrana7038
    @anmolrana7038 2 роки тому

    Teacher ne copy constructor ka example glt krdia

  • @pruthvirajjadhav3084
    @pruthvirajjadhav3084 5 років тому

    madam..copy constructor topic is wrong....

  • @jaikrish50
    @jaikrish50 5 років тому

    Y u are deleted some video in this series

  • @poonamrajawat8355
    @poonamrajawat8355 3 роки тому

    Can we get notes mam

  • @shivamlasiyal1795
    @shivamlasiyal1795 4 роки тому +2

    TBH you have bad habit of saying "nothing but "😂

  • @sriharshini8847
    @sriharshini8847 2 роки тому

    Plese some ex program

  • @dannydominic7959
    @dannydominic7959 3 роки тому

    Your program contains error

  • @pavanch7529
    @pavanch7529 5 років тому

    Mam can you do ,,Oops concepts through Java...

  • @swathinaiduadda3579
    @swathinaiduadda3579 2 роки тому

    Legends watching before exam 😂

  • @gururaj9243
    @gururaj9243 3 роки тому

    Expect in kannada

  • @user-jl1hl5vo6s
    @user-jl1hl5vo6s Рік тому

    budiya!🤣🤣🤣🤣🤣🤣😂😂

  • @yashhhh740
    @yashhhh740 Рік тому

    hindi bolne m sharam aati hai mam?

  • @venkateswararao8161
    @venkateswararao8161 5 років тому

    Mam very good explanation

  • @shaisthashireen7950
    @shaisthashireen7950 3 роки тому

    Tq mam