So, i was reading a tutorial. The guy made an Account class.
And hopefully i understand this. In the next class he made an Account object named my_account by calling the constructor Account() and then changed the double amount by calling some methods -"my_account.method().
But here's my question. He made the Account class and he made the AccountDemo main class. How does the AccountDemo know the Account class information without ever importing the Account class? Does it automatically know if its in the same folder or directory, or are you supposed to import it?
Thanks and God Bless you helping people.
Matthew 1:23 - "Behold, the virgin shall be with child, and bear a Son, and they shall call His name Immanuel," which is translated, "God with us."
Merry Christmas (or Happy Holidays) and God Bless you all.
And hopefully i understand this. In the next class he made an Account object named my_account by calling the constructor Account() and then changed the double amount by calling some methods -"my_account.method().
But here's my question. He made the Account class and he made the AccountDemo main class. How does the AccountDemo know the Account class information without ever importing the Account class? Does it automatically know if its in the same folder or directory, or are you supposed to import it?
Thanks and God Bless you helping people.
Matthew 1:23 - "Behold, the virgin shall be with child, and bear a Son, and they shall call His name Immanuel," which is translated, "God with us."
Merry Christmas (or Happy Holidays) and God Bless you all.