We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
when you create a function in a class it needs to be either private, public, or proteted. He created a new calculator class, how would you create a function "int power(int, int)" without assigning it to public, private, or protected? I am confused, how do the instructions want you to do this because even the editorial uses public?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 17: More Exceptions
You are viewing a single comment's thread. Return to all comments →
when you create a function in a class it needs to be either private, public, or proteted. He created a new calculator class, how would you create a function "int power(int, int)" without assigning it to public, private, or protected? I am confused, how do the instructions want you to do this because even the editorial uses public?