9.1
9.2
9.3-9.4
9.5
9.6
100

What is Object-Oriented Programming?

A programming style in which tasks are solved by collaborating objects

100

What is the difference between the public and private sections?

The user can see only the public section, not the private.

100

What type of function is put in the public interface of a class?


Member function

100

Where do you declare a member function?

In the class Function

100

What is the main purpose of a constructor?

To initialize an object

200

What is a class?

A set of objects with the same behavior

200

What does the state of the object mean?

The value that your function is tracking(Internal data)

200

Can you put parameters in a member function?

Yes

200

Where do you define a member function?

Inside the class definition or Outside the class definition

200

Do default constructors take parameters?

They never take parameters

300

What is the public interface?

The specifications for the member functions that you can invoke

300

What notation do member functions use?

Dot Notation 

300

What does the private interface contain?

Data Member

300

What are the three types of access modifiers used in member functions?

Public, Private, and Protected

300

 What is the rule regarding the name of a constructor?

They have to be the same as the client's name

400

What is needed to define a class?

What is needed to define a class?

400

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

400

How do you access variables in the private interface?

Using member functions

400

Name two types of member functions.

Any of these Const, Virtual, Inline, Static, Simple

400

Why don’t constructors have a return type

They don't return / they are special

500

 What is encapsulation?

 The process of providing a public interface while hiding the implementation details

500

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

500

When do you use const on a member function?

When it doesn’t change any of the data members

500

What is the main purpose of creating member functions?

To encapsulate behavior, allowing objects to interact with and manipulate their own data

500

When is the default constructor called

A default constructor is called when an object is defined without a parameter.