- 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.
推薦閱讀
- VMware View Security Essentials
- Node.js 10實戰
- Android項目開發入門教程
- Hands-On Data Structures and Algorithms with JavaScript
- 深入理解Java7:核心技術與最佳實踐
- PhoneGap:Beginner's Guide(Third Edition)
- Visual Basic程序設計上機實驗教程
- Python深度學習原理、算法與案例
- 移動互聯網軟件開發實驗指導
- 零基礎學C語言第2版
- Android應用開發實戰
- Modular Programming with JavaScript
- Mastering Object:Oriented Python(Second Edition)
- 高質量程序設計指南:C++/C語言
- Mastering PostgreSQL 11(Second Edition)