Constant Members in Class | C++ Tutorial | Mr. Kishore

  Рет қаралды 55,780

Naresh i Technologies

Naresh i Technologies

Күн бұрын

Пікірлер: 33
@NareshIT
@NareshIT 5 жыл бұрын
Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: goo.gl/HIB0wL
@shashankdas5887
@shashankdas5887 5 жыл бұрын
C,ds and c++ videos are excellent.. thanku Naresh it.. can u please make videos on PHP and Ajax..for web development
@ravikaramunge8028
@ravikaramunge8028 4 жыл бұрын
Hello Kishore sir please provide each and every topics in Your C++ playlist Many concepts are missing like Function Overloading ,and thanks your C++ lectures are too good getting every clear idea.I hope you will see my comment,😔
@kirtisoni7958
@kirtisoni7958 6 жыл бұрын
It was really helpful to all of us ..so thanks a ton sir for uploading this useful video for us ...and pls keep uploading like this always 😇😇
@muhdjamilalhakimbmohdrodzi4298
@muhdjamilalhakimbmohdrodzi4298 Жыл бұрын
OMG! This guy is a very good explainer. ❤
@pppriyatimes1174
@pppriyatimes1174 Жыл бұрын
Thank you sir 😊
@ajaykharat8689
@ajaykharat8689 6 жыл бұрын
whenever we are able to change the object such object is called mutable object and unchangeable object is called inmutable object possible using constant function(accessor) #include #include #include using namespace std; class ajay { private: int a,b; public: void getdata() //Modifier { a=10; b=20; } void showdata() const //Accessor { // a=30; //error: assignment of member 'ajay::a' in read-only object // b=40; ////error: assignment of member 'ajay::b' in read-only object cout
@raminkord8334
@raminkord8334 6 жыл бұрын
Thank u sir for your lucid explanation
@aliamjad8717
@aliamjad8717 7 жыл бұрын
Thanks for this useful lesson.
@Alihndhwhrhdheh
@Alihndhwhrhdheh 4 жыл бұрын
Thank you very much it's good
@BeingBookish
@BeingBookish 3 жыл бұрын
3:54 the data type should be float 😅
@kapiljetwani3540
@kapiljetwani3540 4 жыл бұрын
thanks sir! but would prefer you to explain the examples in the compiler rather than in white board
@KandakatlaDeekshith
@KandakatlaDeekshith 7 жыл бұрын
Hi Sir, in last session, as you said static member function are works on only static variables but in last session you have used local arguments as a normal variables to a function. ex: static void test(int a,int b) here int a and int b are the non-static variables, what happens here can you explain me more regarding this. and here a and b are the static variables or non-static variables to that function?
@asifbhat3796
@asifbhat3796 7 жыл бұрын
Kandakatla Deekshith It means that static Function can not use instance member variables it does not mean it can use local variables for example if in an static member function I increment the data member of class if the class has two objects then how complier will know in which object the changes should be reflected
@vamshikumar5246
@vamshikumar5246 4 жыл бұрын
Super explained
@Cloudnexvlogs
@Cloudnexvlogs 5 жыл бұрын
Great lecturer
@kanuraagkaushik97
@kanuraagkaushik97 6 жыл бұрын
const float pi=3.14; and not const int pi=3.14;
@vibhu123
@vibhu123 5 жыл бұрын
Sir class and constructor me colon or semicolon hota hai??? That u have written.
@imposter5716
@imposter5716 Жыл бұрын
still helpful in 2023
@mayankyadav31
@mayankyadav31 7 жыл бұрын
wonderful!!
@PiyushBansal-qg1vk
@PiyushBansal-qg1vk Жыл бұрын
class si { int p; int t; const float r; public: si():r(5.5) //this constructor is made only due to a special purpose to initialize the value of const data member //as we know static member function value initialize outside the class nd declared inside the class { } void getdata(int principal,int tim) { p=principal; t=tim; } float putdata() { cout
@mdaffansajjad3294
@mdaffansajjad3294 5 жыл бұрын
why we are not initializing p and t inside a constructor
@nishantsingh1825
@nishantsingh1825 2 жыл бұрын
sir it is not showing any error why? we are provide direct value of const........... #include using namespace std; class sample { float p; float t; const float r=2.5; public: void getdata(float x,float y) { p=x; t=y; } float read() { return (p*t*r)/100; } }; int main() { sample t1; t1.getdata(1000,10); cout
@LousyPainter
@LousyPainter 6 жыл бұрын
Wow just wow! You are amazing lets go have a beer.
@giovanilima8538
@giovanilima8538 Жыл бұрын
sabe muito
@spreadingpeace2425
@spreadingpeace2425 3 жыл бұрын
good videos
@ankitkumaryadav562
@ankitkumaryadav562 3 жыл бұрын
// Be carefull// // It does't give error const void print() { a = 12; b = 14; } // it gives error void print() const { a = 12; b = 14; }
@ajaykharat8689
@ajaykharat8689 6 жыл бұрын
#include #include #include using namespace std; class ajay { private: float pri; int ti; const int rate; //in C const var must initilized at time of declaration only. //But in C++ data memeber initilization is not allowed in private section // and are allowed in public section using member function or constructor public: ajay(): rate(12) // C++ syntax for const initilization { } void getdata(float pri,int ti) { this->pri=pri; this->ti=ti; } float calc() { return (pri*ti*rate)/100; } }; int main() { ajay a1; a1.getdata(10500,2); f=a1.calc(); float f; cout
@rebelkhan4747
@rebelkhan4747 6 жыл бұрын
hello sir, sir what is the name of small window thats open in INT_ MAIN function of class (i-e, classname obj;). sir i want to say that if we write OBJ. then there is a small window open a side .. what is it's name??????
@pratikranjan3101
@pratikranjan3101 4 жыл бұрын
int t;
@Mr8read
@Mr8read Жыл бұрын
Sztywny gircior z ciebie. Trzymaj się wariacie
@neelisivasai9023
@neelisivasai9023 4 жыл бұрын
How many of you getting error for 2nd Problem
Operator Overloading in C++ Example 1 | C++ Tutorial | Mr. Kishore
31:48
Naresh i Technologies
Рет қаралды 229 М.
Static Data Member And Static Member Function In C++
17:19
CppNuts
Рет қаралды 52 М.
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Friend Function in C++ Part 1 | C++ Tutorial | Mr. Kishore
17:38
Naresh i Technologies
Рет қаралды 168 М.
Destructor in C++ | C++ Tutorial | Mr. Kishore
13:27
Naresh i Technologies
Рет қаралды 90 М.
The 3 Laws of Writing Readable Code
5:28
Kantan Coding
Рет қаралды 812 М.
you will never ask about pointers again after watching this video
8:03
Copy Constructor in C++ | C++ Tutorial | Mr. Kishore
14:13
Naresh i Technologies
Рет қаралды 158 М.
Naming Things in Code
7:25
CodeAesthetic
Рет қаралды 2,3 МЛН
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,5 МЛН
Friend Class in C++ Example 1 | C++ Tutorial | Mr. Kishore
15:05
Naresh i Technologies
Рет қаралды 100 М.
Programming Is NOT Enough | Add these 7 skills…
13:19
Travis Media
Рет қаралды 424 М.
15 Years Writing C++ - Advice for new programmers
4:04
SyncMain
Рет қаралды 1,3 МЛН