Inheritance and Data Structures in Java

所在平台: Coursera

课程主页: https://www.coursera.org/learn/java-inheritance-data-structures

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:Java中的继承与数据结构 课程概述:本课程全面讲解了Java中的继承概念,包括访问修饰符和方法重写。学生将学习抽象类的基本知识,以及如何进行文件读写、使用正则表达式解析文本和利用复杂数据结构如集合和映射。此外,课程还提供了捕捉错误和调试代码的策略,特别介绍了Eclipse调试工具的使用。 课程大纲: 模块1:继承、多态的重写及访问修饰符 在本模块中,我们将探讨继承这一面向对象编程的核心概念,它是一个类继承另一个类的字段和方法的机制。随后,我们将学习多态的另一个方面——重写,即在子类中创建一个与父类中同名的方法,特别是在打印对象时重写toString方法及比较对象时重写equals方法,与单元测试相关联。最后,讲解如何通过使用修饰符来控制变量、方法和类的访问权限,从而限制程序的作用域。 模块2:抽象类与调试 在本模块中,我们将介绍如何声明一个没有定义的方法,即抽象方法。我们会学习如何创建抽象类以定义这些抽象方法。借助这些新概念和结构,我们将进一步扩展Java知识,提高编程技能。此外,我们还将学习如何通过Eclipse的调试工具以交互方式运行程序,从而在执行过程中观察源代码和变量。 模块3:文件输入/输出与异常处理 本模块将探讨在Java中加载和存储数据的多种方式。信息可以在不同的数据结构中存储和操作,也可以存储在外部文件中并加载到Java中。我们将学习Java如何通过打开、读取和写入外部文件与外部世界进行沟通,即输入/输出(I/O)。我们将引导您了解与外部文件交互的不同方式,并演示在处理文件时可能出现的错误和异常的处理方法。 模块4:集合、映射与正则表达式 在本模块中,我们将探讨存储和操作数据的高级技术,特别是在集合(结构化对象组)中的应用。我们将学习利用Java的集合框架,该框架为表示和操作不同类型的集合提供了统一的架构。我们将特别关注ArrayList集合,同时学习如何利用映射(将键与值关联的字典)。此外,模块还将概述一些文本解析的高级技术,尤其是如何使用正则表达式(regex),其为描述用于搜索、编辑和操作文本和数据的模式的特殊字符序列。

课程大纲

Name:Module 1 : Inheritance, Polymorphism Using Overriding, & Access Modifiers

Description:We’ll start this module by talking about inheritance, a core concept in object-oriented programming. It’s the mechanism by which one class inherits the fields and methods of another class. Then we’ll learn about another aspect of polymorphism, overriding, which is creating a method in a subclass having the same signature as a method in a superclass. In particular, we’ll look at overriding the toString method for printing your objects and the equals method for comparing your objects, especially as it relates to unit testing. Finally, how you can restrict scope in a program by using modifiers to control access to variables, methods, and classes.

Name:Module 2 : Abstract Classes & Debugging

Description:Did you know you can declare a method without defining it? It’s like giving a method a name, and even parameters and a return type, with no code in the body. These are called abstract methods. To define abstract methods, we’ll learn how to create abstract classes. With these new concepts and structures, we’ll continue to expand our Java knowledge and develop our programming skills. We’ll also learn how to better debug our programs by running them interactively using Eclipse’s Debugger. This will allow us to watch the source code and the variables, during execution.

Name:Module 3 : File I/O & Exceptions

Description:There are multiple ways of loading and storing data in Java. Information can be stored and manipulated in different kinds of data structures. But data can also be stored in external files and then loaded into Java. In this module, we'll see how Java can communicate with the outside world by opening, reading from, and writing to, external files. This means of communication known as I/O or input/output, is extremely powerful with an overwhelming number of options. Any given I/O is not particularly difficult, but the difficulty lies in finding your way through the maze of possibilities. This module will help guide you through some of the different ways you can interact with external files. In addition, it will demonstrate methods you can use to handle errors and exceptions that may arise in your Java programs. In particular, when you're dealing with files.

Name:Module 4 : Collections, Maps, & Regular Expressions

Description:In this module, we're going to look at some advanced techniques for storing and manipulating data in collections, which are structured groups of objects. Specifically, we'll learn how to leverage Java's collections framework, which is a unified architecture for representing and manipulating different kinds of collections. We already have experience working with one type of collection in particular, and that's the ArrayList. We'll also learn how to leverage maps, which are dictionaries that associate keys with values. This module will also provide an overview of some advanced techniques for parsing text. In particular, we'll learn how to use regular expressions or regex, which are special sequences of characters that describe patterns used for searching, editing, and manipulating text and data.

课程评论(0条)

课程详情

This course provides a comprehensive look at Java inheritance, including access modifiers and overriding methods. Students are introduced to abstract classes, and will learn how to read and write to files, use regular expressions for parsing text, and how to leverage complex data structures like collections and maps. Additionally, this course offers strategies for catching errors and debugging code, including an overview of Eclipse’s debugging tool.

课程标签

0人关注该课程

主题相关的课程