Any vs AnyObject vs Generic in Swift || iOS Interview Questions || iOS Coding Interview

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024

Комментарии • 23

  • @soumyajitpal5049
    @soumyajitpal5049 8 месяцев назад

    Thanks Very Underrated channel

  • @vojtechkalivoda8455
    @vojtechkalivoda8455 Год назад

    Thank you man for the explanation!!! it's very clear to me now when to use which one >D keep doing great work man and thank you!!!

  • @dharmendragour9150
    @dharmendragour9150 Год назад

    this video really help full for us please continue for logical and tricky question

  • @rushabhsingh5116
    @rushabhsingh5116 2 года назад

    Really enjoyed this video....Good job.... Thanks

  • @matheussmoreira
    @matheussmoreira Год назад

    Well done, friend. I loved it!

  • @manojsomineni5979
    @manojsomineni5979 Год назад

    Thank you so much sir

  • @ashwaniyadav4054
    @ashwaniyadav4054 2 года назад

    Thanks for the video. Very useful and liked, keep it up.

  • @akshaykumar-qj2kx
    @akshaykumar-qj2kx 2 года назад

    Nice... Thanks

  • @ranganathchenna4559
    @ranganathchenna4559 2 года назад

    good stuff bro... do more videos on interview series ♣︎

    • @AppDeveloperPoint
      @AppDeveloperPoint  Год назад

      There are 46 videos I think in this playlist. Let me know what specific topic you need. I will anyway keep adding. Thanks for watching. Do subscribe
      for updates

  • @Praveenkumar-kv2pz
    @Praveenkumar-kv2pz 2 года назад

    Nice 👌

  • @mathisankar615
    @mathisankar615 Год назад

    Thanks

  • @Rahul-jf5kf
    @Rahul-jf5kf Год назад

    Hi Nilesh,
    at 18:46 no problem if we use Int and double, can you please explain

    • @AppDeveloperPoint
      @AppDeveloperPoint  Год назад

      So basically if we are confirming to generic with one T type, So you have to pass same data type. You can either pass both int, both string or any same data type

    • @Rahul-jf5kf
      @Rahul-jf5kf Год назад

      @@AppDeveloperPoint but one int and one double working fine.
      func printNumbers(a:T,b:T){
      print(a)
      print(b)
      }
      printNumbers(a: 2,b: 3.5)

    • @AppDeveloperPoint
      @AppDeveloperPoint  Год назад

      Because int can always be typecasted to Double. Thats why its working. If you will notice your print value, You will find that Int will convert to double

    • @Rahul-jf5kf
      @Rahul-jf5kf Год назад

      @@AppDeveloperPoint got it. thanks