- A constructor is a special type of function in a contract which is initialize at once at the time of contract deployment.
- it initiate the state variable defined in the contract, and set up logic if required for the program
- e.g
contract solidityCourse {
bool admin;
string content;
constructor(string _content){
admin = true;
if(admin == true){
content = _content
}
}
}