+ 3
Not exactly. C is not an object oriented language, meaning that it has no way to make classes. The point of a getter and setter method is to set a variable from within the class and retrieving it without actually having to know what the variable is called. Push and pop are used for arrays, push being to add an element to the front of one and pop being to remove an element at the end. Hope this cleared that up!
30th Jan 2018, 7:28 PM
Faisal
Faisal - avatar