Introduction to Java and Object-Oriented Programming

所在平台: Coursera

课程主页: https://www.coursera.org/learn/java-object-oriented-programming

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:Java与面向对象编程入门 概述:本课程介绍Java语言及面向对象编程,涵盖Java语法及其与Python等语言的区别。学生将学习如何编写自定义Java类和方法,以及如何使用单元测试和测试驱动开发测试代码。课程内容包括基本数据结构如数组和ArrayLists,以及方法的重载。 大纲: 模块1:Java、类及Eclipse简介 描述:欢迎学习Java!此模块介绍Java语言和面向对象编程,重点讲解Java语法,尤其是与Python的不同之处。内容包括变量和数据类型、循环与条件语句、打印到控制台、扫描用户输入以及代码文档编写。此外,模块还解释了Java类的结构及其内部工作原理,并教您如何定义自定义类和方法。 模块2:单元测试、数组及ArrayLists 描述:在本模块中,您将学习如何测试代码并使其正常运行,最有效的方法是编写一组可以随时运行的单元测试。我们将学习如何在Java中进行单元测试及其重要性。同时,我们将介绍Java数组,这是一种项目集合,以及ArrayLists,它们类似于数组但更灵活,工作方式与Python中的列表类似。ArrayLists是Java更大集合框架的一部分,课程将持续引用这一内容。 模块3:静态变量、方法及多态性(使用重载) 描述:到目前为止,我们一直在Java类中定义实例变量。实例变量是指在类内部定义的变量,每个类的实例可以拥有不同的值。本模块将研究如何在Java类中定义静态变量,静态变量使用关键字“static”定义,所有类实例的静态变量值相同,甚至不需要创建类的实例就可以使用它们!我们还将讨论静态方法,使用方式与静态变量相同。此外,我们还将介绍多态性,重点关注重载,即同一类中有两个或多个同名方法的情况。

课程大纲

Name:Module 1 : Introduction to Java, Classes, & Eclipse

Description:Welcome to Java! This first module provides an introduction to the Java language and object-oriented programming. It includes an overview of Java syntax, in particular, how it differs from a language like Python. Topics will include variables and data types, loops and conditionals, printing to the console, scanning for user input, and code documentation. This module also explains the structure and inner-workings of a Java class and teaches you how to define your own custom classes and methods.

Name:Module 2 : Unit Testing, Arrays, & ArrayLists

Description:In this module, you will be taught to test your code to get it working. The best way to do this is to write a set of unit tests that you can run against your program, at any time. In this module, we'll learn how to do unit testing in Java, and why we want to do it. We’ll also learn all about Java Arrays, which are collections of items, and ArrayLists, which are kind of like arrays, but much more flexible. These work just like lists in Python. ArrayLists are part of Java’s larger Collections Framework, which we’ll continue to reference throughout this course.

Name:Module 3 : Static Variables, Methods, & Polymorphism Using Overloading

Description:So far, we’ve been defining variables as instance variables in our Java classes. Instance variables are just variables defined inside a class, and every instance of a class can have a different value for an instance variable. In this module, we’ll look at defining static variables in our Java classes. Static variables are also defined as variables inside a class, but with the keyword 'static'. Static variables have the same value for every instance of a class. In fact, you don’t even need to create an instance of a class to use a static variable! We’ll also look at static methods. And just like static variables, you don’t need to create an instance of a class to use, or call, a static method. In this module, we’re also going to introduce polymorphism, which refers to overloading and overriding. We’ll focus on overloading, which is having two or more methods in the same class, with the same name.

课程评论(0条)

课程详情

This course provides an introduction to the Java language and object-oriented programming, including an overview of Java syntax and how it differs from a language like Python. Students will learn how to write custom Java classes and methods, and how to test their code using unit testing and test-driven development. Topics include basic data structures like Arrays and ArrayLists and overloading methods.

课程标签

0人关注该课程

主题相关的课程