Skip to content

In Kotlin, a secondary constructor is a way to define additional initialization logic for a class. Unlike the primary constructor, which is defined in the class header, a secondary constructor is defined inside the body of the class.

License

Notifications You must be signed in to change notification settings

VaibhavMojidra/Kotlin---Demo-Secondary-Constructor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kotlin Demo Secondary Constructor

In Kotlin, a secondary constructor is a way to define additional initialization logic for a class. Unlike the primary constructor, which is defined in the class header, a secondary constructor is defined inside the body of the class.


Vaibhav Mojidra - 1.jpeg

About

In Kotlin, a secondary constructor is a way to define additional initialization logic for a class. Unlike the primary constructor, which is defined in the class header, a secondary constructor is defined inside the body of the class.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages