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

Поділитися
Вставка
  • Опубліковано 8 вер 2024

КОМЕНТАРІ • 23

  • @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!!!

  • @soumyajitpal5049
    @soumyajitpal5049 7 місяців тому

    Thanks Very Underrated channel

  • @dharmendragour9150
    @dharmendragour9150 Рік тому

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

  • @manojsomineni5979
    @manojsomineni5979 Рік тому

    Thank you so much sir

  • @ashwaniyadav4054
    @ashwaniyadav4054 2 роки тому

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

  • @rushabhsingh5116
    @rushabhsingh5116 2 роки тому

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

  • @matheussmoreira
    @matheussmoreira Рік тому

    Well done, friend. I loved it!

  • @mathisankar615
    @mathisankar615 Рік тому

    Thanks

  • @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 👌

  • @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