- Hands-On Object:Oriented Programming with C#
- Raihan Taher
- 150字
- 2021-07-02 12:44:41
Objects in OOP
We now know what a class is. Now let's look at what object refers to in OOP.
An object is an instance of a class. In other words, an object is an implementation of a class. For example, in our banking application, we have a Customer class, but that doesn't mean that we actually have a customer in our application. To create a customer, we have to create an object of the Customer class. Let's say that we have a customer called Mr. Jack Jones. For this customer, we have to create an object of the Customer class, where the name of the person is Jack Jones.
As Mr. Jones is our customer, this means that he also has an account in our bank. To create a bank account for Mr. Jones, we have to create an object of the BankAccount class.
推薦閱讀
- Flask Web開發(fā)入門、進(jìn)階與實(shí)戰(zhàn)
- JavaCAPS基礎(chǔ)、應(yīng)用與案例
- MySQL從入門到精通(軟件開發(fā)視頻大講堂)
- Webpack實(shí)戰(zhàn):入門、進(jìn)階與調(diào)優(yōu)
- Spring Security Essentials
- Visual Basic程序設(shè)計(jì)習(xí)題與上機(jī)實(shí)踐
- 持續(xù)集成與持續(xù)交付實(shí)戰(zhàn):用Jenkins、Travis CI和CircleCI構(gòu)建和發(fā)布大規(guī)模高質(zhì)量軟件
- 人工智能算法(卷1):基礎(chǔ)算法
- Python數(shù)據(jù)可視化之美:專業(yè)圖表繪制指南(全彩)
- Java 9 Programming By Example
- Mastering Adobe Captivate 7
- Visual C++從入門到精通(第2版)
- 深度學(xué)習(xí)入門:基于Python的理論與實(shí)現(xiàn)
- INSTANT Premium Drupal Themes
- 嵌入式C編程實(shí)戰(zhàn)