My question for mentor.

IT 英語を基礎から学ぶための良いウェブサイトはありませんか?

Java Objects : Java Lab 2

Java classes and objects

The class is defined as the blueprint a specific object.

The object consists by the “method” and “property”.

  • A property is attributes of an object. It is like an adjective.
  • A method is something we do to or on an object. It is like a verb.

To become a Java programmer we must learn two things: how to use classes that other people have created and how to create our own Java classes.

Learn Object-Oriented Programming using Java

Learn Object-Oriented Programming using Java
Lab 1, Quiz 1

Question 1:

In the lesson, we used an analogy relating a recipe to a source file. Can you come up with your own analogy for the source file?

The source file is the one like the blueprint.

Question 2:

In your own words, describe the relationship between a Java source file, a file with a .class extension, and the Java compiler.

The Java compiler converts the source file into a file with a .class extension.

A souce file is human readable.
A .class file is machine readable.

フォロー

Get every new post delivered to your Inbox.