






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







-^
-^
d i
d^
k^
b^
h^
d^
d
know to be able to drive the car
-^
what
the function
will do, but does not need to know
how
it does it
What is the data that is associated with a bank account?–
NameA
t N
b
-^
Account Number
-^
Balance
-^
PIN
What are the functions that can be performed on a bankaccount?
Deposit
-^
Deposit
-^
Withdrawal
-^
Transfer
-^
Check Balance
-^
Change PIN
There are two access specifiers in C++–
public
i^
t
-^
private
If a variable or function is declared public, any other pieceof code can access the variable or function
-^
If a variable or function is declared private, only the classin which that variable or function is declared can access it
l^
f^
h^
b^
id
h^
d^
d^
h
Rule of Thumb – Hide the data and expose the necessaryfunctions