Week 8 Flashcards

1
Q

Inheritance is a mechanism for?

A
  1. building class types from extisting class types

2. defining new class types to be more specific. i.e: specialization

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

inheritance adalah?

A

suatu mekanisme untuk menggunakan kembali atau memperluas class yang sudah ada tanpa harus dimodifikasi.

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

inheritance juga dikenal sebagai?

A

subclassing

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

base class adalah?

A

class dimana member nya yang mau di include kedalam class baru

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

derived class?

A

new class yang derived dari base class

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

relationship nya?

A

is-a

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

direct base class adalah?

A

sebuah base class yang muncul secara langsung sebagai base specifier dalam declaration dari derived class nya.

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

indirect base class adalah?

A

sebuah base class yang tidak muncul secara langsung sebagai base specifier dalam declaration dari derived class nya.

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

apa yang di inherit dan yang tidak di inherit?

A

yang di inherit adalah setiap member dari base class. tergantung dari access permission nya.

kecuali:

  1. constructor dan destructor
  2. operator =() member
  3. friends
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

3 jenis access-level?

A
  1. private (default)
  2. protected
  3. public
How well did you know this?
1
Not at all
2
3
4
5
Perfectly