Sign in

Above I have created a class named Activity that is defined but nothing is in it yet. The first thing we need to do inside a class is to create a constructor function.

A constructor is a function that constructs an instance of a class which is called an object. In the future, if we want to create a new activity the constructor function will be responsible for creating that new activity object based on this class. …

Huda Yousif

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store