Awesome explanation Mr. Bangar Raju. I regularly follow your videos and just want to say a BIG Thank you to you that you save my lot of time of search. Keep up the good work. :)
Sir, your demo is very interesting. I always follow you. I have a request, could you please upload a video on the Constructor Chaining. Thank you very much.
Sir tq for giving the gd lecture you did a little bit mistake in parametarised constructot if u possible change that because intioly I get doubt cross check in crome I can realise
Please clear my doubt At 10:10 We defined parameterized constructor and in that we did not initialized the value of x. And because we defined one explicit constructor and due to this implicit constructor will not call Then how value of x is initialized to 0 When we call display method it's showing value of 0
My class does not have any Main method but is has an Explicit static Constructor .When i run the class static constructor is called without main but you said static constructor is called from the first line of the Main Method . I thinks static Constructor is same as Static block in java which is invoke only at class loading time .
If a class contains static variable then only implicit constructor in present and if a class contains both static and non-static variable then which type of implicit constructor will be present under the class??
Is this statement correct?--Parametrized Constructor:If a constructor method is defined without any parameters we call that as parametized constructor.
Sir, i have a doubt, sir as you said about default constructor the values are assigned by default constructor, i.e x=0 this is done by default constructor. but in parameterized constructor when you print x value without assignment with i. it also prints x=0 who will done this sir? that means Assignment. is default constructor also called or due the default value of int? it must get an exception as uninitialized variable i .
Sir, Thanks for the very good teaching. I have a small doubt, Why we need static constructors as these are parameter less and used to initialise the only static variables, while we can initialise the static variable when we declare itself. I would really appreciate one real time scenario where it can be used Thanks!!
First, static constructors are called automatically by the .NET runtime to initialize the class before the first instance is created or any static members are referenced. This can be useful if you need to perform some initialization logic before any other code accesses the class. Second, static constructors can be used to perform complex initialization tasks that require more code than a simple assignment. For example, you might use a static constructor to populate a static lookup table or to create and initialize a static object that requires more complex construction logic. Finally, static constructors can be useful if you need to ensure that the initialization of a static variable is thread-safe. Because a static constructor is only executed once, when the class is first loaded, you can use it to perform initialization tasks in a thread-safe manner without the need for additional synchronization. In summary, static constructors can be useful for initializing static variables, performing complex initialization tasks, and ensuring thread-safety during initialization.
Hi Bangar raju, if you mentioned the parameterized constructors are with out defined parameters in you typing if type2... coming for example you said parameterized constructors are defined with parameters... which is correct i am confused if am wrong please correct me
In this particular Example, if console read line was not used the console will print the value of x and then it will instantly shut down, So the read line used to prevent that.
First you are writing a defination that the constructors not having any parameters withou tany constructors are parameterized constructors which is not logical according to me, then you are giving an example of a parameterized constructo by passing parameters and then teling a construtors having paramateres is called parameteried constructors, what is this sir? xD
first you should understand yourself what is trying to explain. implicit , explicit, we define constructor but comiler defining constructor. what is rubbish
Although the videos are lengthy, I feel every second is worth watching. 👍👍
Perfectly put! Couldn't agree more!
Best C# Tutorial ever. Thanks a lot Mr. Bangar.
In Parameterized constructors we use parameters but you wrote that without any parameters in definition
Maybe typing issue
Don't have words to describe this tutorials. Nice tutorials.
Awesome explanation Mr. Bangar Raju. I regularly follow your videos and just want to say a BIG Thank you to you that you save my lot of time of search. Keep up the good work. :)
Outstanding & Praiseworthy for sure!
Parameterized constructor is defined with parameters which a programmer defines.
Nice explain of oops concept . Thanks u sir for ur effort 👍 keep doing .
Sir, your demo is very interesting. I always follow you. I have a request, could you please upload a video on the Constructor Chaining. Thank you very much.
Amazing explanation. Thanku so much sir
What a knowledge Sir....salute
The way of explanation is good
Nice explanation, awesome instructor
Great explanation but please include private constructor also.
Fantastic explanation sir
Thank you❤
Sir tq for giving the gd lecture you did a little bit mistake in parametarised constructot if u possible change that because intioly I get doubt cross check in crome I can realise
Very nice class sir
Nice teaching style sir.plz make videos on other subjects to.please.
Can you tell why should we use Static constructors?
Please clear my doubt
At 10:10
We defined parameterized constructor and in that we did not initialized the value of x.
And because we defined one explicit constructor and due to this implicit constructor will not call
Then how value of x is initialized to 0
When we call display method it's showing value of 0
0 is the default value for integers
PLEASE EXPLAIN WHAT IS STATIC VOID MAIN ( ) ALL IN DETAIL WHY IT USE WHAT ALL KEY WORD DESCRIBES.
nice one
My class does not have any Main method but is has an Explicit static Constructor .When i run the class static constructor is called without main but you said static constructor is called from the first line of the Main Method . I thinks static Constructor is same as Static block in java which is invoke only at class loading time .
please modify in the palce of constructor with out =with at 06:42
THANK YOU SIR .
If a class contains static variable then only implicit constructor in present and if a class contains both static and non-static variable then which type of implicit constructor will be present under the class??
good,easy to learn
What about private constructor.??
Nice. Thank you.
parameterized Constructor Method is Define with out any Parameter ya Define with any parameter sir Explain Clearly..plz
I think he intended to say if a constructor is defined with parameter we call it parameterized constructor.
typing mistake
Parameterized constructor is nothing but having parameters in it.
By mistake he typed like that but its actually with parameters
Mst
Sir you make mistake in parameterized constructor.
It contains parameters you have written without parameters.
yeah i also noticed that.. for some time i get confused
Is this statement correct?--Parametrized Constructor:If a constructor method is defined without any parameters we call that as parametized constructor.
No
No. I guess he typed wrongly in video
Good one.use cw double tab for console. Writeline
He doesn't use any code snippets bro
He trains everyone as a kid.
That's why he's best
Sir, i have a doubt, sir as you said about default constructor the values are assigned by default constructor, i.e x=0 this is done by default constructor.
but in parameterized constructor when you print x value without assignment with i. it also prints x=0 who will done this sir? that means Assignment.
is default constructor also called or due the default value of int?
it must get an exception as uninitialized variable i .
Sir,
Thanks for the very good teaching. I have a small doubt, Why we need static constructors as these are parameter less and used to initialise the only static variables, while we can initialise the static variable when we declare itself.
I would really appreciate one real time scenario where it can be used
Thanks!!
First, static constructors are called automatically by the .NET runtime to initialize the class before the first instance is created or any static members are referenced. This can be useful if you need to perform some initialization logic before any other code accesses the class.
Second, static constructors can be used to perform complex initialization tasks that require more code than a simple assignment. For example, you might use a static constructor to populate a static lookup table or to create and initialize a static object that requires more complex construction logic.
Finally, static constructors can be useful if you need to ensure that the initialization of a static variable is thread-safe. Because a static constructor is only executed once, when the class is first loaded, you can use it to perform initialization tasks in a thread-safe manner without the need for additional synchronization.
In summary, static constructors can be useful for initializing static variables, performing complex initialization tasks, and ensuring thread-safety during initialization.
sir u said default access modifier of constructor is public, not internal?
awesome
Paramerized constructor definition written wrong, actually it should have minimum single parameter but you written without parameters.
Hi Bangar raju, if you mentioned the parameterized constructors are with out defined parameters in you typing if type2... coming for example you said parameterized constructors are defined with parameters... which is correct i am confused if am wrong please correct me
I hope we have private constructors as well right?
will you provide pdf for this ?plz if possible it would be the great help.
Please provide video about Private Constructor
Thx.
which visuals studios u are using can u say plz
Visual studio 2015
Thanks s very nice video,but need private constructor
when i m doing this example on my Laptop this is giving different output
value of X is: 10
value of X is: 20
Here we have not taken variable x as global then how its value got changed.
Alast every program your are writing console. Readline() can you tell reason for that sir
Hi bro,can u explaine, what is private constructor
Where Can I get the notes stuff???
Please correct the parameterized constructor definition.
Sir ,what about private contractor
Sir what is the use of console. ReadLine
In this particular Example, if console read line was not used the console will print the value of x and then it will instantly shut down, So the read line used to prevent that.
Bangar raju or Kudvenkat??? Im confused
What is the difference between static void and public void can anyone tell me?????
Where i can get all this notes
Explanation is simple and good.. but tooo slow and sooo boring.. wasting time in typing in notepad
u said that parameterized means without parameters
Parameter less means with out parameters
missing static class explanation in this video
Why x = obj.x; in copy constructor
can we define object with any nanes?
Yes u can define with any name it is ur own choice
with out prameter you write
SIr, please share notes
prrogrramerr
With out
there is a small mistake in this video...any body noticed..... cheppina vallaki //life time settlement raaa😅
5:53
lol I'm thhe only one who dont understand ?
Copy constructor mujhe smjh hi nhi arha
First you are writing a defination that the constructors not having any parameters withou tany constructors are parameterized constructors which is not logical according to me, then you are giving an example of a parameterized constructo by passing parameters and then teling a construtors having paramateres is called parameteried constructors, what is this sir? xD
first you should understand yourself what is trying to explain. implicit , explicit, we define constructor but comiler defining constructor. what is rubbish
still hate that voice