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

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024

ความคิดเห็น • 23

  • @manojsomineni5979
    @manojsomineni5979 ปีที่แล้ว

    Thank you so much sir

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

  • @soumyajitpal5049
    @soumyajitpal5049 8 หลายเดือนก่อน

    Thanks Very Underrated channel

  • @akshaykumar-qj2kx
    @akshaykumar-qj2kx 2 ปีที่แล้ว

    Nice... Thanks

  • @rushabhsingh5116
    @rushabhsingh5116 2 ปีที่แล้ว

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

  • @ashwaniyadav4054
    @ashwaniyadav4054 2 ปีที่แล้ว

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

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

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

  • @matheussmoreira
    @matheussmoreira ปีที่แล้ว

    Well done, friend. I loved it!

  • @mathisankar615
    @mathisankar615 ปีที่แล้ว

    Thanks

  • @Praveenkumar-kv2pz
    @Praveenkumar-kv2pz 2 ปีที่แล้ว

    Nice 👌