Week 3 Flashcards

1
Q

2 jenis dari parameter?

A

Formal parameter adalah variable atau expresssion yang muncul pada saat mendefinisikan function

Actual parameter adalah variable atau expression yang diberikan pada saat pemanggilan function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

5 Jenis yang berbeda dari member functions adalah?

A
  1. Accessor
  2. Implementor
  3. Helper/Utility
  4. Constructor
  5. Destructor
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Overloading Function adalah?

A

sebuah function yang di overloaded dengan nama yang sama ke function yang berbeda. dengan 3 syarat yang berurutan:

  1. number of parameter
  2. data type of parameter
  3. order of appearance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Constructor adalah?

A

special method yang mendeskripsikan bagaiman sebuah object dibuat. sebuah Constructor memiliki nama yang sama dengan class nya

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

3 jenis constructor?

A
  1. Default constructor
  2. Re-define default constructor
  3. Overloading Constructor
How well did you know this?
1
Not at all
2
3
4
5
Perfectly