Giter Site home page Giter Site logo

osunadev / java-oop-theory-example-docs Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 13.58 MB

These documents are aimed for students as a learning tool for the Object Oriented Programming class from the 4th Semester of Computer Engineering Program at UABC (Tijuana).

object-oriented-programming code-examples java

java-oop-theory-example-docs's Introduction

These code sample documents were made as a part of a teaching assistantship of the OOP UABC course for the 4th semester, summarizing the last 3 units. All the theory involved in these documents came from different sources, such as forums, articles, books and many more.

The topics covered in each unit are organized with a theoretical introduction following an example statement to the problem, an example code with its proper execution of the program and conclusions.

UNIT 3: TYPES OF CLASSES IN JAVA

3.1. Types of classes

  • 3.1.1. Applicable modifiers in classes declarations: public, abstract, final, extends, implements.
  • 3.1.2. Abstract classes.
  • 3.1.3. Interfaces.
  • 3.1.4. Enumerations.

3.2. Wrapper classes

  • 3.2.1. Basic classes: Byte, Short, Character, Integer, Long, Float, Double, Boolean.
  • 3.2.2. Primitive data types corresponding to wrapper classes.

3.3. Handling of packages

  • 3.3.1. Creation of a package through the package directive.
  • 3.3.2. Invocation and use of packages, use of import directive.

UNIT 4: INHERITANCE AND COMPOSITION OF CLASSES

4.1 Simple inheritance: derived classes

  • 4.1.1. Inheritance of the members of the parent class.
  • 4.1.2. Addition of the behavior of derived class.
  • 4.1.3. Overriding of attributes and methods.
  • 4.1.4. The reserved word super.

4.2. Multiple inheritance

  • 4.2.1. The concept of interface.
  • 4.2.2. Declaration of the structure of an interface.
  • 4.2.3. Implementation of an interface.
  • 4.2.4. hierarchy of interfaces.

4.3. Composition of classes

  • 4.3.1. Compound classes.
  • 4.3.2. Nested classes.

UNIT 5: INPUT AND OUTPUT OF DATA (I/O)

5.1. Simple data input and output

  • 5.1.1. The package System.out: methods print(), println().
  • 5.1.2. Output format: escape secuencies.

5.2. Simple graphic format input and output

  • 5.2.1. The use of method JOptionPane.showInputDialog().
  • 5.2.2. The use of method JOptionPane.showMessageDialog().

5.3. The StringBuffer class

  • 5.3.1. The use of StringBuffer class.
  • 5.3.2. The methods of StringBuffer class.

5.4. Streams, readers and writers

  • 5.4.1. The use of File class.
  • 5.4.2. Using InputStream.
  • 5.4.3. Using OutputStream.
  • 5.4.4. Using FileInputStream.
  • 5.4.5. Using File OutputStream.

java-oop-theory-example-docs's People

Contributors

osunadev avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.