Java - Programming Language
This course covers the basics of programming in Java. Work your way through the videos and we'll teach you everything you need to know to start your programming journey!

Classes & Objects

Lesson 26
Author : Mike Dane
Last Updated : October, 2017


Copyclass Book{
     public String title;
     public String author;

public class App{
     public static void main(String [] args){
          Book book1 = new Book();
          book1.title = "Harry Potter";
 = "JK Rowling";


          Book book2 = new Book();
          book2.title = "Lord of the Rings";
 = "JRR Tolkien";