What is Object-Oriented Programming?
A programming style in which tasks are solved by collaborating objects
What is the difference between the public and private sections?
The user can see only the public section, not the private.
What type of function is put in the public interface of a class?
Member function
Where do you declare a member function?
In the class Function
What is the main purpose of a constructor?
To initialize an object
What is a class?
A set of objects with the same behavior
What does the state of the object mean?
The value that your function is tracking(Internal data)
Can you put parameters in a member function?
Yes
Where do you define a member function?
Inside the class definition or Outside the class definition
Do default constructors take parameters?
They never take parameters
What is the public interface?
The specifications for the member functions that you can invoke
What notation do member functions use?
Dot Notation
What does the private interface contain?
Data Member
What are the three types of access modifiers used in member functions?
Public, Private, and Protected
What is the rule regarding the name of a constructor?
They have to be the same as the client's name
What is needed to define a class?
What is needed to define a class?
What is the scope resolution operator(What is it used for and write the symbol)?
(: :) It is used to define a class member function outside of the class itself
How do you access variables in the private interface?
Using member functions
Name two types of member functions.
Any of these Const, Virtual, Inline, Static, Simple
Why don’t constructors have a return type
They don't return / they are special
What is encapsulation?
The process of providing a public interface while hiding the implementation details
This allows for an object to be initialized with specific values when created. It needs to share a name with the member function
A constructor
When do you use const on a member function?
When it doesn’t change any of the data members
What is the main purpose of creating member functions?
To encapsulate behavior, allowing objects to interact with and manipulate their own data
When is the default constructor called
A default constructor is called when an object is defined without a parameter.