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

Constructor Function

Lesson 28
Author : 🦒
Last Updated : October, 2017


Copyclass Book{
     public String title;
     public String author;

     public Book(String title, String author){
          this.title = title;
 = author;


public class App{
     public static void main(String [] args){

          Book book1 = new Book("Harry Potter", "JK Rowling");

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