Static Member Functions | C++ Tutorial | Mr. Kishore

  Рет қаралды 68,322

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

Пікірлер: 52
@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
@danishzia3511
@danishzia3511 4 жыл бұрын
What can I say? I wish I had known you in 2017! No one has explained C++ in such details as you did. Wish you a world for the job you do..
@airwarrior-vayusena9551
@airwarrior-vayusena9551 2 ай бұрын
One of the most eloquent teachers .Thanks Mr. Kishore for such wonderful videos on c++
@58__tannurawat95
@58__tannurawat95 4 жыл бұрын
I rarely comment for KZbinrs but sir you are outstanding amazing fabulous you deserve the respect ,from us
@molyoxide8358
@molyoxide8358 4 жыл бұрын
may I know whether are you in college or school??
@yogeshupadhyay7975
@yogeshupadhyay7975 3 жыл бұрын
@@molyoxide8358 hrrr jagah Panchayati krni hai Londo ko....
@niteshpaudelofficial
@niteshpaudelofficial Жыл бұрын
best c++ teacher I have seen on youtube
@anayapathak7162
@anayapathak7162 3 жыл бұрын
These faculties are so down to earth. Look how humbly they speak.
@pe_P
@pe_P 4 жыл бұрын
Well explained..😇Thankyou sir♥️
@rahulchaubey8988
@rahulchaubey8988 4 жыл бұрын
you teach like a pro teacher...
@dr.r.suganthi2304
@dr.r.suganthi2304 6 жыл бұрын
Super sir... tomorrow need to take lesson of static.. valuable and timely help
@KizunaK15
@KizunaK15 Жыл бұрын
terimakasih pakde Kishore 🙏🏻
@mohammednazreen4882
@mohammednazreen4882 2 жыл бұрын
Outstanding explanation sir
@tarushidubey6108
@tarushidubey6108 Жыл бұрын
Thank you sir🙏
@techdyan8500
@techdyan8500 4 жыл бұрын
Thank you for clearing doubt sir.
@sammedsankonatti1579
@sammedsankonatti1579 3 жыл бұрын
Whether we need to define static member functions outside the class , in the same way that we define static data members
@ajaykharat8689
@ajaykharat8689 6 жыл бұрын
class ajay { private: int a,b; public: int c,d; static int e; }; int ajay::e; int main() { ajay a1; //ajay::c; //ERROR-->invalid use of non-static data member 'ajay::c' ajay::e; //Valid }
@techcoding0543
@techcoding0543 4 жыл бұрын
as c is not a static member so it gives error so to access c varible .so a1.c should be used i think so
@sharath5796
@sharath5796 3 жыл бұрын
in first example..x and y are not defined ...they are directly passed as parrameter
@ravisinghrawat5644
@ravisinghrawat5644 4 жыл бұрын
Thanks a lot ...........
@geetaranidehuri3459
@geetaranidehuri3459 3 жыл бұрын
Thank u sir
@IshaqKhan-rk5bl
@IshaqKhan-rk5bl 7 жыл бұрын
if we havent declared x and y as static how do function know they are static?
@osamaa1891
@osamaa1891 6 жыл бұрын
Here x and y are not data members.They are actually local variable. SO they can't be static or non-static:D
@tharunkumarreddyk7581
@tharunkumarreddyk7581 4 жыл бұрын
@@osamaa1891 static member functions only work with static data members
@vikramkumar9008
@vikramkumar9008 3 жыл бұрын
Can static data member work in private section also
@sharath5796
@sharath5796 3 жыл бұрын
@@osamaa1891 in firstv example they are bot declared
@garimajain4218
@garimajain4218 3 жыл бұрын
@@sharath5796 i also confused at this point
@mitrachalaune8449
@mitrachalaune8449 7 жыл бұрын
Thank ou sir
@ajaykharat8689
@ajaykharat8689 6 жыл бұрын
#include #include #include using namespace std; class ajay { private: int a,b; public: static void getdata() //Only static data member is allowed in static member function { a=10; //ERROR-->invalid use of member 'ajay::a' in static member function b=20; / /ERROR-->invalid use of member 'ajay::b' in static member function cout
@nonstoprider1623
@nonstoprider1623 2 жыл бұрын
Super
@niroshathanaya7858
@niroshathanaya7858 4 жыл бұрын
Sir tq meru chepthunadhi maku bhaga ardham indhi but konchem program tho explain chesthy bhaguntundhi sir
@chandumadhumanthi9983
@chandumadhumanthi9983 4 жыл бұрын
U r saying that Static data members can be accessed with class but for class memory will not be created bcoz it is logically exists but not physically until n unless object created for that class memory won't be created
@venkatp9381
@venkatp9381 4 жыл бұрын
All static members are created during program start and will remain till program end. So these static members are not part of class memory
@molyoxide8358
@molyoxide8358 4 жыл бұрын
Do you want answer for this question??
@kanhuhembram3565
@kanhuhembram3565 6 жыл бұрын
I think after making data members static also give error bcoz they are declared under private section
@amandeepbhullar1860
@amandeepbhullar1860 6 жыл бұрын
And they are acessed by the member function of that class so i think there is no error
@whoisnegii
@whoisnegii 5 жыл бұрын
@@amandeepbhullar1860 if you want to access them through class name in main fun then they must be in public section
@006daredevil
@006daredevil 5 жыл бұрын
Karan Negi No member functions and data members which is declared in same class and if Data members are declared as private then still Member functions can acess that private variable because they are declared inside the same class. Another way to acess a private data member is using friend functions.
@gopialavala8618
@gopialavala8618 2 жыл бұрын
sir in the main part we have to write the data type na sir first and after that we can write class name but you wrote cls name first why sir
@ajaykharat8689
@ajaykharat8689 6 жыл бұрын
#include #include #include using namespace std; class ajay { private: int a,b; public: void getdata() { a=10; b=20; cout
@ajaykharat8689
@ajaykharat8689 6 жыл бұрын
#include #include #include using namespace std; class ajay { private: static int a,b; public: static void getdata() { this->a=10; //ERROR-->'this' is unavailable for static member functions this->b=20; ////ERROR-->'this' is unavailable for static member functions cout
@vikramkumar9008
@vikramkumar9008 3 жыл бұрын
Sir in previous lecture you says static data member are declare inside public section
@sahiljindal1226
@sahiljindal1226 3 жыл бұрын
same doubt sir
@ajmalbangash6928
@ajmalbangash6928 4 жыл бұрын
In the first program u have static mem function but did not have static data members, so then how it is working???
@molyoxide8358
@molyoxide8358 4 жыл бұрын
they were local variable for the static function. so there's no need to declare it as a static or non-static.
@arjumandayoub8483
@arjumandayoub8483 Жыл бұрын
#include using namespace std; class sample { public: static void input (int x, int y) { // now even tho maine static data members pehle declare nahi kiye hai this will still work. cout
@jitendramehta1550
@jitendramehta1550 6 жыл бұрын
Thanks a lot sir ji
@இந்தியன்-ல6ன
@இந்தியன்-ல6ன 4 жыл бұрын
Try to improve the teaching language in tamil
Constant Members in Class | C++ Tutorial | Mr. Kishore
20:04
Naresh i Technologies
Рет қаралды 55 М.
Friend Function in C++ Part 1 | C++ Tutorial | Mr. Kishore
17:38
Naresh i Technologies
Рет қаралды 168 М.
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН
Caleb Pressley Shows TSA How It’s Done
0:28
Barstool Sports
Рет қаралды 60 МЛН
Static Data Member And Static Member Function In C++
17:19
CppNuts
Рет қаралды 52 М.
Static Data Members Example 1 | C++ Tutorial | Mr. Kishore
12:16
Naresh i Technologies
Рет қаралды 91 М.
Friend Class in C++ Example 1 | C++ Tutorial | Mr. Kishore
15:05
Naresh i Technologies
Рет қаралды 100 М.
C++ Header Files
15:10
The Cherno
Рет қаралды 749 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 343 М.
Multiple Inheritance in C++ | C++ Tutorial | Mr. Kishore
18:18
Naresh i Technologies
Рет қаралды 76 М.
File Handling in C++ Programming
16:06
Simple Snippets
Рет қаралды 377 М.