What you'll learn
- Defining classes
- Access specifiers
- Constructors and destructors
- this pointer
A quick example
example
class Student {
public:
string name;
int marks;
Student(string n, int m) : name(n), marks(m) {}
bool passed() { return marks >= 40; }
};In the live class, the instructor builds examples like this step by step, explains each line and gives practice problems.
How this topic is taught at CodeMBS
Live class
Concept explanation, demonstrations and live problem-solving with the instructor.
Saturday doubts
Bring questions from Classes & Objects to the weekly doubt-solving session.
Sunday test
Check your understanding with a scheduled assessment.
Recording
Revise the full lesson anytime during your membership.
Full lesson on Classes & Objects is available to members
Detailed live lesson, worked examples, practice questions, recordings and weekly tests are part of the CodeMBS membership.
Unlock with membership