Week 2 Flashcards

1
Q

Abstract Data type?

A

ways of representing real-world and conceptual notions to some satisfactory level of precision within a computer system

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

Contoh ADT?

A

Struct, enum, class, union

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

Didalam ADT terdapat?

A

Data representation and Operation

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

2 jenis dari Data Member?

A

Non-static dan Static data member

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

Main purpose of encapsulation adalah?

A

information hiding

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

3 Access control?

A

public, private, and protected

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

Class contains?

A

data members dan member functions

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

3 access specifiers. default is private

A

Access Specifiers
– public
• may accessible from anywhere within a program
– private
• may accessible only by the member functions and
friends of this class
– protected
• acts as public for derived classes
• behaves as private for the rest of the program

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