Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ int myfind(T* begin,T* end,F f) {
}

class AbstractUser {

protected:
string username;
string password;

public:
AbstractUser(const string& username, const string& password)
: username(username), password(password) {}
Expand All @@ -31,9 +36,7 @@ class AbstractUser {
return (pass == password);
}

protected:
string username;
string password;

};

class Student : public AbstractUser {
Expand Down Expand Up @@ -156,4 +159,4 @@ int main() {
}

return 0;
}
}