Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun main(args: Array<String>) {
- val primary = Primary("Doe")
- val primaryCon = PrimaryConstructor("John")
- primary.testCall()
- primaryCon.testCall()
- }
- class Primary constructor(val firstName: String) {
- fun testCall() {
- println("First Name : $firstName")
- }
- }
- class PrimaryConstructor(val firstName: String) {
- fun testCall() {
- println("First Name : $firstName")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement