From the course: C++ Essential Training
Unlock the full course today
Join today to access over 24,000 courses taught by industry experts.
Overview of classes and objects - C++ Tutorial
From the course: C++ Essential Training
Overview of classes and objects
- [Instructor] In C++, classes're treated as custom data types. They're used like any type provided by the C++ language. Classes and objects're extremely powerful, with many features and capabilities. This chapter will cover the basics, which should be enough for many purposes. For more detail, please see the companion course, "C++: Advanced Topics." Let's start by defining some terminology. First, let's look at the words, class and object. The definition of a class, using the class keyword, is the class itself. You may then use the class to create an object. The object is sometimes called an instance of the class. Sometimes you'll hear the verb form, instantiate, to describe the process of creating an object. Class members, sometimes called object members, are the contents of a class. There're two types of members. Data members are the members that represent encapsulated data. Data members're sometimes called…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
(Locked)
Overview of classes and objects5m 43s
-
(Locked)
Data members3m 36s
-
(Locked)
Function members4m 27s
-
(Locked)
Constructors and destructors8m 7s
-
(Locked)
Operator overloads5m 28s
-
(Locked)
Non-member operators5m 31s
-
(Locked)
Challenge: Non-member operators54s
-
(Locked)
Solution: Non-member operators1m 20s
-
(Locked)
-
-
-