#include using namespace std; // Classes act as 'blueprints' for objects // objects are things that YOU programmer create, and they consist of attributes and methods. They mimic real world objects like cats, chair, car etc. // attributes are variables that you declare or assign to an object // methods are user defined functions that allow the object to interact and do things. class Cat { public: string name; string color; int age; bool isInternetFamous; void eat(){ cout
Appreciate the videos man, really easy to understand 🙏🏼
#include
using namespace std;
// Classes act as 'blueprints' for objects
// objects are things that YOU programmer create, and they consist of attributes and methods. They mimic real world objects like cats, chair, car etc.
// attributes are variables that you declare or assign to an object
// methods are user defined functions that allow the object to interact and do things.
class Cat
{
public:
string name;
string color;
int age;
bool isInternetFamous;
void eat(){
cout