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

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

Naresh i Technologies

Naresh i Technologies

Күн бұрын

C ++ Tutorial Videos | Mr. Kishore
** For Online Training Registration: goo.gl/r6kJbB ► Call: +91-8179191999
💡 Also Watch
C Language Tutorials: goo.gl/qDhJ2r
Core Java FAQ's: goo.gl/qGh5mA
Core Java Tutorials: goo.gl/NbaEge
Java Programming Tutorials by Mr.Hari krishna:
goo.gl/HThq6H
Advanced Java Programming Tutorials by Mr.Nataraj:
goo.gl/1U2Qgy
Subscribe to our channel and hit the bell 🔔🔔🔔 icon to get video updates.
💡 Visit Our Websites
For Classroom Training: nareshit.in/cp...
For Online Training: nareshit.com/c...
#JavaCollectionsFramework #Tutorials #Videos #corejava #Quiz #Clanguage
--------------------------
💡 About NareshIT:
"Naresh IT is having 14+ years of experience in software training industry and the best Software Training Institute for online training, classroom training, weekend training, corporate training of Hadoop, Salesforce, AWS, DevOps, Spark, Data Science, Python, Tableau, RPA , Java, C#.NET, ASP.NET, Oracle, Testing Tools, Silver light, Linq, SQL Server, Selenium, Android, iPhone, C Language, C++, PHP and Digital Marketing in USA, Hyderabad, Chennai and Vijayawada, Bangalore India which provides online training across all the locations
--------------------------
💡 Our Online Training Features:
🎈 Training with Real-Time Experts
🎈 Industry Specific Scenario’s
🎈 Flexible Timings
🎈 Soft Copy of Material
🎈 Share Videos of each and every session.
--------------------------
💡 Please write back to us at
📧 us.training@nareshit.com/ 📧 online@nareshit.com or Call us at the USA: ☎+1404-232-9879 or India: ☎ +918179191999
--------------------------
💡 Check The Below Links
► For Course Reg: goo.gl/r6kJbB
► Subscribe to Our Channel: goo.gl/q9ozyG
► Circle us on G+: plus.google.co...
► Like us on Facebook: / nareshit
► Follow us on Twitter: / nareshitek
► Follow us on Linkedin: goo.gl/CRBZ5F
► Follow us on Instagram: goo.gl/3UXYK3

Пікірлер: 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,😔
@muhdjamilalhakimbmohdrodzi4298
@muhdjamilalhakimbmohdrodzi4298 Жыл бұрын
OMG! This guy is a very good explainer. ❤
@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
@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 😇😇
@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
@kapiljetwani3540
@kapiljetwani3540 3 жыл бұрын
thanks sir! but would prefer you to explain the examples in the compiler rather than in white board
@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
@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
@kanuraagkaushik97
@kanuraagkaushik97 6 жыл бұрын
const float pi=3.14; and not const int pi=3.14;
@vibhu123
@vibhu123 4 жыл бұрын
Sir class and constructor me colon or semicolon hota hai??? That u have written.
@raminkord8334
@raminkord8334 6 жыл бұрын
Thank u sir for your lucid explanation
@jstoturial9293
@jstoturial9293 4 жыл бұрын
Thank you very much it's good
@pppriyatimes1174
@pppriyatimes1174 Жыл бұрын
Thank you sir 😊
@aliamjad8717
@aliamjad8717 7 жыл бұрын
Thanks for this useful lesson.
@BeingBookish
@BeingBookish 3 жыл бұрын
3:54 the data type should be float 😅
@imposter5716
@imposter5716 Жыл бұрын
still helpful in 2023
@vamshikumar5246
@vamshikumar5246 3 жыл бұрын
Super explained
@Cloudnexvlogs
@Cloudnexvlogs 5 жыл бұрын
Great lecturer
@mdaffansajjad3294
@mdaffansajjad3294 5 жыл бұрын
why we are not initializing p and t inside a constructor
@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; }
@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??????
@mayankyadav31
@mayankyadav31 6 жыл бұрын
wonderful!!
@spreadingpeace2425
@spreadingpeace2425 3 жыл бұрын
good videos
@giovanilima8538
@giovanilima8538 9 ай бұрын
sabe muito
@LousyPainter
@LousyPainter 6 жыл бұрын
Wow just wow! You are amazing lets go have a beer.
@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
@pratikranjan3101
@pratikranjan3101 4 жыл бұрын
int t;
@Mr8read
@Mr8read 11 ай бұрын
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
Рет қаралды 227 М.
Static Member Functions | C++ Tutorial | Mr. Kishore
16:51
Naresh i Technologies
Рет қаралды 67 М.
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 14 МЛН
The selfish The Joker was taught a lesson by Officer Rabbit. #funny #supersiblings
00:12
Funny superhero siblings
Рет қаралды 11 МЛН
Static Data Member And Static Member Function In C++
17:19
CppNuts
Рет қаралды 52 М.
Overloading Insertion and  Extraction Operator in C++ | C++ Tutorial | Mr. Kishore
16:55
Reference data type in C++ | C ++ Tutorial | Mr. Kishore
23:01
Naresh i Technologies
Рет қаралды 102 М.
Static Data Members Example 1 | C++ Tutorial | Mr. Kishore
12:16
Naresh i Technologies
Рет қаралды 90 М.
Multiple Inheritance in C++ | C++ Tutorial | Mr. Kishore
18:18
Naresh i Technologies
Рет қаралды 76 М.
Object Oriented Programming (OOP) in C++ Course
1:30:26
freeCodeCamp.org
Рет қаралды 2,5 МЛН
Friend Class in C++ Example 1 | C++ Tutorial | Mr. Kishore
15:05
Naresh i Technologies
Рет қаралды 99 М.
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17