Find online courses made by experts from around the world.
Take your courses with you and learn anywhere, anytime.
Learn and practice real-world skills and achieve your goals.
Note: This course is a subset of our much longer course 'Learn By Example: C++ With 75 Solved Examples' so please don't sign up for both:-)
Like a gruff uncle, C++ seems intimidating, when its just being helpful. These examples will help you understand that.
Let's parse that.
Operator overloading is a particularly complicated topic - C++ is virtually alone in the ubiquity of overloaded operators. Make sure this doesn't trip you up.
Not for you? No problem.
30 day money back guarantee.
Learn on the go.
Desktop, iOS and Android.
Certificate of completion.
|Section 1: Overloaded But Still Productive!|
You, This Course, and Us!Preview
|What is operator overloading? Understand internal operators, defined as member functions of a class vs external operators defined as global functions. External operators are commonly friend functions of the class on which they operate.|
|When would you choose to have an internal operator implementation vs an external operator implementation? Sometimes you don't have a choice!|
|All the nitty gritty details to get the += correct. With operator overloading the function signatures are the most complicated, pay close attention to those. Why does this operator return a reference?|
|All the nitty gritty details to get the + operator correct. With operator overloading the function signatures are the most complicated, pay close attention to those. Why does this operator return a const object?|
|The "++" operator can mean the pre-increment or the post-increment operator. How does C++ disambiguate?|
|This is the operator that's implemented the most often! It's also tricky and has many details which have to be exactly right.|
|A flashback to how streams and buffers work in C and C++.|
The bitwise shift operators work with input and output streams when overloaded. Learn how to make your custom classes work with IO steams using operator overloading.
Loonycorn is us, Janani Ravi, Vitthal Srinivasan, Swetha Kolalapudi and Navdeep Singh. Between the four of us, we have studied at Stanford, IIM Ahmedabad, the IITs and have spent years (decades, actually) working in tech, in the Bay Area, New York, Singapore and Bangalore.
Janani: 7 years at Google (New York, Singapore); Studied at Stanford; also worked at Flipkart and Microsoft
Vitthal: Also Google (Singapore) and studied at Stanford; Flipkart, Credit Suisse and INSEAD too
Swetha: Early Flipkart employee, IIM Ahmedabad and IIT Madras alum
Navdeep: longtime Flipkart employee too, and IIT Guwahati alum
We think we might have hit upon a neat way of teaching complicated tech courses in a funny, practical, engaging way, which is why we are so excited to be here on Udemy!
We hope you will try our offerings, and think you'll like them :-)