Introduction to Object-Oriented Programming with Java

所在平台: Coursera

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

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:Java面向对象编程入门 课程概述:Java面向对象编程入门是核心Java专业化的第二门课程。完成本课程后,您将能够创建简单的Java类,展示封装原则,导入其他类以供使用,处理字符串,输出结果以及使用高级数学函数。我们将首先简要回顾面向对象编程的必要概念。接下来,我们将介绍Java类的基本概念,使您能够开始编写具有属性和方法的简单Java类。我们将引入实例的概念,或从类创建的对象,以帮助您开始构建面向对象的解决方案。最后,我们将介绍命名空间和Java库,解释Java如何对类进行打包,以确保每个人都能在不发生命名冲突的情况下开发代码。您将能够组织和访问类,以及使用Java运行时环境中的选定标准类。 成功完成此课程的前提是您已参加了第一门课程:Java入门或具备同等知识。 课程大纲: 1. 类和对象:讨论使用面向对象编程的原因,以及Java中的类、对象、属性和方法的概念。同时讨论JavaBeans规范的一些约定,并在代码中加以应用。 2. 创建类:深入探讨如何在Java中创建类以及如何将类组织到包中。包括实例变量和类变量、方法、访问修饰符、参数、可变长度参数列表、本地变量、常量、构造函数、重载方法等内容。 3. 使用Java对象:这一相对简短的模块将关注对象的创建,使用“new”关键字创建对象,类型与类的区别(我们将多次回顾这个概念),以及在创建新对象时JVM中发生的概念性情况。 4. 命名空间和Java库:更详细地探讨Java包的使用,包括如何声明包、处于包内的影响、包的重要性、如何从其他包中导入类、导入的作用、如何按照规定的规则命名自己的唯一包名以及如何解决命名冲突。最后,我们将具体查看四个Java类:String、StringBuffer、StringBuilder和Math。

课程大纲

Name:Classes and Objects

Description:In this module, we discuss why we are using Object-Oriented Programming, and introduce the concepts in Java of Classes, Objects, Attributes, and Methods. Along with that, we'll discuss some of the conventions of the JavaBeans Specification, and make use of them in our code.

Name:Creating Classes

Description:In this module, we'll go into more detail on creating classes in Java, and how to organize classes into packages. We'll cover attributes (instance and class variables), methods, access modifiers, parameters, variable length argument lists, local variables, constants, constructors, overloaded methods, and more.

Name:Using Java Objects

Description:In this relatively short module, having discussed, in more detail, creating classes, we'll briefly turn our attention back to objects. How to create them with the "new" keyword, the difference between type and class (something we'll revisit often), and (conceptually) what happens in a JVM when we create a new object.

Name:Namespaces and Java Libraries

Description:In this module, we'll look more closely at the use of Java packages. How we declare our package; the implications of being in a package; why packages are important; how we import classes from other packages; what import does for us; how we come up with our own, unique, package name by following the specified rules; how to resolve name collisions. Finally, we will concluding by looking at four specific Java classes: String, StringBuffer, StringBuilder and Math.

课程评论(0条)

课程详情

Introduction to OO Programming with Java is course 2 of the Core Java Specialization. After completing this course, you'll be able to create simple Java classes that exhibit the principle of Encapsulation, to import other classes for use, to work with Strings, print output and use advanced math functions. We'll begin with a brief refresher on necessary concepts from Object-Oriented Programming. Next, we'll introduce basic Java concepts regarding classes, enabling you to start writing simple Java classes with attributes and methods. We'll introduce the idea of instances, or objects created from classes, so that you can start to build object-oriented solutions. Finally, we'll cover namespaces and Java Libraries to explain how Java packages classes, so that everyone can develop code without name collisions. You will be able to organize and access classes, as well as use selected standard classes from the Java runtime environment. To be successful in this course, you should have taken Course 1: Introduction to Java or have equivalent knowledge.

课程标签

0人关注该课程

主题相关的课程