Week 2 Flashcards
Abstract Data type?
ways of representing real-world and conceptual notions to some satisfactory level of precision within a computer system
Contoh ADT?
Struct, enum, class, union
Didalam ADT terdapat?
Data representation and Operation
2 jenis dari Data Member?
Non-static dan Static data member
Main purpose of encapsulation adalah?
information hiding
3 Access control?
public, private, and protected
Class contains?
data members dan member functions
3 access specifiers. default is private
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