What is the difference between a constructor and a method?

A Constructor is a block of code that initializes a newly created object. A Method is a collection of statements which returns a value upon its execution . A Constructor can be used to initialize an object.14 May 2019

Sizin İçin Seçtik  Bir tablonun orijinal olduğunu nasıl anlarız?

Leave a Reply

Your email address will not be published. Required fields are marked *