constructors
Object Orientation
Class Definition
member functions
simple class
100

member function that initializes the data members

What is a constructor

100

A programming style in which tasks are solved by collaborating object

what is object orientation programming

100

What are the two sections within a class definition?

Private and public

100

Where are member functions declared?

public interface of class definition

100

the value that keeps track of how many times our counter is updated

what is object state

200

his constructor has no parameters

what is default constructor

200

the specifics for the member functions that you can use 

what is public interface

200

Data members are defined and found within which section?

private

200

Where are the member functions defined?

After the class definition

200

An object stores its state in ___

what is data members

300

A ____ can have multiple constructors

What is class

300

having public interface while hiding the implementation details

encapsulation

300

What is the different between a setter and a getter?

A setter changes the values of a data members while a getter returns a data member. 

300

when defing an accesor function what should be added following the parameter?

const

300

a class has __ and __ sections

what is private and public

400

Constructors are ___ in a class definition 

what is declared

400

before object orientation programming how did people decompose tasks

what it function

400

Define a member function that increase the value of a data member by 5%.

void percent_increase(int value);


400

how to define member function

return type ClassName::memberfunction();

400

member functions is __ section

what is public section

500

Constructors never____

what is return value

500

whats the specifications for a member function

public interference

500

What is wrong with the folloing definition (2 things):

class cat 

{

public:

  void meow();

  void jump();

  void set_age(int new_age);

  void set_name(string new_name);

  int get_age() const;

  string get_name() const;

private:

  int age;

  string name;

}

Cat must be capitliazed and second bracket needs ;

500

How is a member function called?

in the main - constructor name.memberfucntion();

500

data members is __ section

what is private section