Java Classes and Objects

4.7
19 個評分
提供方
Coursera Project Network
2,007 人已註冊
在此指導項目中,您將:

Define instance variables and create a Class variable using static.

Use Encapsulation by providing private instance variables and public getters and setters.

Define Constructors with various parameters and create object instances.

Clock2 hours
Intermediate中級
Cloud無需下載
Video分屏視頻
Comment Dots英語(English)
Laptop僅限桌面

In Object-Oriented Programming in a language such as Java, Classes and Objects are often used interchangeably but there is a distinction between the two. A class is a blueprint for objects. In this project you will create an application that defines a Car class and create one to many Car objects. A Car class contains the common attributes all cars have; color, make and model. When a Car Object is made from the Car class, it is then assigned a specific color, such as a red Nissan Sentra or a blue Toyota Camry. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

您要培養的技能

Class DesignEncapsulationObject-Oriented Programming (OOP)JavaInformation Hiding

分步進行學習

在與您的工作區一起在分屏中播放的視頻中,您的授課教師將指導您完成每個步驟:

  1. Create the Java Class, identify attributes, and instantiate a Car object.

  2. Define instance variables and create a Class variable using static.

  3. Use Encapsulation by providing private instance variables and public getters and setters

  4. Define Constructors with various parameters and create object instances of the Class.

  5. Override a default method to create a String representation of the Object.

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心