// instance of a class
// below myCat is Object of class Cat
void main(){
    Cat myCat = Cat();
    myCat.name = "Kitty";
    myCat.voice(); // Prints: Meow
}
Comments