Aliens School
Cinematic Knowledge Experience
0%
Aliens School
Now Playing
Aliens School ยท HIEN
โŒจ๏ธ Keyboard Shortcuts
โ†’Next slide โ†Previous slide SpacePlay / Pause MNarration on/off FFullscreen ?Show/hide this
Press any key to close
Skill Topic ยท Cinematic

๐Ÿ“˜ Kotlin โ€” Functions

fun = function! Default params, named args, single-expression โ€” clean code! ๐ŸŽฏ

Overview
๐ŸŒŸ

๐Ÿ“˜ Kotlin โ€” Functions โ€” Quick Facts

๐Ÿ“Œ

$age: $email

Topic 1
๐Ÿ“ฅ ๐Ÿ“ฅ ๐Ÿง  ๐Ÿ”ฌ ๐Ÿ’ก ๐ŸŽฏ

๐Ÿ“Œ 1. Basic Functions

๐Ÿ“š `kotlin // โ•โ•โ• Simple function โ•โ•โ• fun greet() { println("Hello, Kotlin!") } // โ•โ•โ•โ€ฆ
Topic 2
๐Ÿ’ก ๐Ÿ“Š ๐Ÿ”ฌ

๐Ÿ“Œ 2. Single-Expression Functions

๐Ÿ’ก `kotlin // โ•โ•โ• Short functions โ€” ek hi expression โ•โ•โ• fun square(x: Int): Int = x * x //โ€ฆ
Topic 3
๐Ÿ”’

๐Ÿ“Œ 3. Default Parameters

๐ŸŽฏ `kotlin // โ•โ•โ• Default values โ€” calling me optional โ•โ•โ• fun greet(name: String = "Guest",โ€ฆ
Topic 4
โญ

๐Ÿ“Œ 4. Named Arguments

โญ `kotlin fun createProfile( name: String, age: Int, email: String, city: String =โ€ฆ
Topic 5
๐Ÿ“ฅ ๐Ÿ“ฅ ๐Ÿง  ๐Ÿ”ฌ ๐Ÿ’ก ๐ŸŽฏ

๐Ÿ“Œ 5. vararg (Variable Arguments)

๐Ÿ”‘ `kotlin // โ•โ•โ• Variable number of arguments โ•โ•โ• fun printAll(vararg items: String) { forโ€ฆ
Topic 6
โœจ ๐Ÿ“Š ๐Ÿ”ฌ

๐Ÿ“Œ 6. Local Functions

โœจ `kotlin // โ•โ•โ• Function ke andar function โ•โ•โ• fun processUser(name: String, age: Int) {โ€ฆ
Topic 7
๐Ÿ”’

๐Ÿ“Œ 7. Extension Functions (Preview)

๐ŸŒŸ `kotlin // โ•โ•โ• Existing class me naye functions add karo! โ•โ•โ• funโ€ฆ
Topic 8
๐Ÿš€

๐Ÿ“Œ 8. Infix Functions

๐Ÿš€ `kotlin // โ•โ•โ• Infix โ€” operator style call โ•โ•โ• infix fun Int.power(exp: Int): Int { varโ€ฆ
Topic 9
๐Ÿ“ฅ ๐Ÿ“ฅ ๐Ÿง  ๐Ÿ”ฌ ๐Ÿ’ก ๐ŸŽฏ

๐Ÿ“Œ 9. Function Types Summary

๐Ÿ“š ` โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฆโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— โ•‘ Type โ•‘ Example โ•‘โ€ฆ
Topic 10
๐Ÿ’ก ๐Ÿ“Š ๐Ÿ”ฌ

โœ… Summary

๐Ÿ’ก KEY POINTS: - fun: function declare karo โ€” fun name(params): ReturnType - Unit: voidโ€ฆ
Quick Quiz
๐Ÿง  QUIZ TIME

Quiz โ€” Question 1

๐Ÿ“˜ Kotlin โ€” Functions ka sabse sahi definition kya hai?

Complete! ๐ŸŽ‰
COMPLETE

๐Ÿ“˜ Kotlin โ€” Functions Complete!

Aliens School ยท HIEN ยท Cinematic Knowledge

โœ…

๐Ÿ“˜ Kotlin โ€” Functions Complete

1/14
0:00
REC 00:00ESC=Cancel
Aliens School
3
Recording shuru hone wali hai...
โœ…
Recording Complete
Video process ho rahi hai...
Live Class
Slide 1 / 7
Timer
00:00
๐Ÿ“ Speaker Notes
โ€”
โญ๏ธ Up Next
โ€”
โ€”
๐Ÿ—‚๏ธ All Slides