Constructor Function

Lesson 26
Author : Afrixi
Last Updated : November, 2017

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


Copypublic class 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");