Interview Questions on Struct vs Class vs Actor | iOS Interview Questions | Swift 5.5

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.ค. 2024
  • Struct vs Class is the favourite question of interviewers and after WWDC 21, Actor made this question even more difficult. Most of the interviews start with this question, and the answer to this question decides direction of the interview (decides follow up questions).
    In this video, I’ve discussed struct, class and actor (in brief) and 12 frequently asked interview questions on them. Also, I’ve discussed the answers in such a way, that you would be able to answer any question around them (apart from the 12 that I've discussed).

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

  • @SyedAbdulbasitShahMashwani
    @SyedAbdulbasitShahMashwani 2 ปีที่แล้ว +16

    Hi Pallav, This is Syed Abdul Basit from Pakistan. I am really thankful to you for providing such brilliant content regarding iOS development. I had my interview last week and, in the interview, there were 2,3 questions like Copy on write, Dispatch methods which I cleared due to your youtube videos, and luckily I secured the job offer from Canada. Once again thanks brother for these videos.

    • @JohnWick-us8it
      @JohnWick-us8it 2 ปีที่แล้ว +3

      Hi Syed, Can you help me on how you secured offer from Canada? I am also looking for a job change. I am from India.

  • @DhavalHNena
    @DhavalHNena 2 ปีที่แล้ว +1

    So far the best tutorial comparing class vs struct! thanks a lot!

  • @payalmalekar6529
    @payalmalekar6529 10 หลายเดือนก่อน +2

    very well explained Pallav 👏 !!!!

  • @just.begin.again.
    @just.begin.again. ปีที่แล้ว

    Thank you so much for the effort!
    Best video on a subject so far, and I've seen a lot! You got yourself a new loyal follower now✨ Keep it up!

  • @heshanlk17
    @heshanlk17 2 ปีที่แล้ว +1

    Love all your content. Please continue the System Design videos for iOS!

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

    Awesome Explanation with each and minute details , which will helps not only for experience iOS developer but It also makes the pillar for those who just started the career in iOS.Thanks man!!

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

    Very clearly explained. Thank you and good luck for more such contents.

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

    Amazing content!! Thanks Pallav.

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

    You help to improve my Confidance.. Thanks a lot for such a nice explaination

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

    really superb!Most of the questions covered

  • @21piyushgupta
    @21piyushgupta 7 หลายเดือนก่อน +1

    love your video's and efforts.... just a friendly suggestion, believe you speak too fast, i refer your video's to my teammates and they get lost and have to revisit video multiple time for some of the concepts
    we all could be wrong here but thought to share

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

    Wow fantastic knowledge and explanations 🎉

  • @vikas_.
    @vikas_. ปีที่แล้ว

    Super cool information. Well explained

  • @AnuragKashyap17
    @AnuragKashyap17 2 ปีที่แล้ว +4

    Sir can we get a video on POP in Swift. How actually implement it I mean there are videos on it on you tube but then I am sure u must be having a different perspective and a more easy way to explain it.
    And SOLID principles using POP in consideration.
    Thank you in advance. Great tutorials indeeed.

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

    This channel is gold

  • @Rawatjay
    @Rawatjay 2 ปีที่แล้ว +5

    Brilliant questions & explaination sir..I would like you to continue this series & involve concepts such as core data , data security such as pinning, API security, generics, Protocol oriented programming, thread safety including race conditions, dynamic vs static dispatch, efficient memory management , Singleton vs DI, Architectural patterns etc...

    • @iCode_Happy_Coding
      @iCode_Happy_Coding  2 ปีที่แล้ว +1

      Thanks for the kind words Jayant. I've already covered most of the topics suggested by you. Please go through channel's videos section - th-cam.com/users/iCode_Happy_Coding/videos
      I'll try to cover the remaining ones soon. Thanks 🙂

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

    Awesome explanation!

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

    great work .. 👏🏼

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

    very valuable content!! Thank you for your channel, immediate subscriber!

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

    I will keep this video as a reminder of the answer to the difficult questions

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

    This is gold level video

  • @g.1771
    @g.1771 2 ปีที่แล้ว

    Excellent video bro

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

    This is fantastic!

  • @dhaval12593
    @dhaval12593 2 ปีที่แล้ว +1

    Excellent video. Thanks Pallav

  • @ANILKUMAR-vv1fz
    @ANILKUMAR-vv1fz 2 ปีที่แล้ว +1

    Awesome video

  • @abdulyasin_iOS
    @abdulyasin_iOS 11 วันที่ผ่านมา

    Great video ...

  • @Rahul-jf5kf
    @Rahul-jf5kf 2 ปีที่แล้ว

    Hello Pallav,
    One question. value types get created on stack memory and class types on heap memory.
    now if any struct is created in controller where memory gets allocated?
    as per 08:14 on heap
    if this is true then for any app there structs are always allocated on heap.
    Is tere any way to check where memory for that instance gets allocated

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

    Can you please explain when to use sqlite, core data, realm.

  • @tanvibhatia6439
    @tanvibhatia6439 2 หลายเดือนก่อน

    Video is very helpfull.Can we get similar kind of question sfor latest swift version 5.10 and nowdays what set of questions are being asked in interview?

  • @govind20246
    @govind20246 2 ปีที่แล้ว +1

    Really good and trending questions you explained here ..! Thanks 😊👍

  • @juemariageorge1583
    @juemariageorge1583 2 ปีที่แล้ว +1

    Very Informative . Can u please cover the topic network architecture in a project

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

    Superb Thanks😀

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

    In API Call Model class, what we can use Struct or Class?

  • @TheSachinAlam
    @TheSachinAlam 2 ปีที่แล้ว +1

    NOw thats the content i was looking for

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

    Millions of Thanksssss for amazing content🙏

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

    Very good video thanks for it but like to as is function is not a reference type?

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

    Awesome once again ...keep up the good work.

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

    Well explained

  • @ashok2089
    @ashok2089 20 วันที่ผ่านมา

    Helpful, thanks!

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

    Please create demo on Struct being thread safe and also when using reference type as a property in Struct then structs are not thread safe. When we can have data race condition in this condition.
    One example only with struct with properties of value type so while accessing them in different thread is it thread safe or not.
    Looking forward for this analysis.

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

    Hello sir, Can you please share the video for closures

  • @sudheerkumar-fj1kr
    @sudheerkumar-fj1kr 2 ปีที่แล้ว

    Nice explanation sir with each and every minued details

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

    Can we restrict to take screenshot in iOS app?

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

    Man!!! this is great 👍

  • @twinsbaby5774
    @twinsbaby5774 2 ปีที่แล้ว +1

    very fruitful thanks

  • @rebellious_703
    @rebellious_703 2 ปีที่แล้ว +1

    Your videos are like gems to me. Thanks. Request: Video on downloading data in background and its policies and possibilities, background fetch etc are really needed.
    Background downloading while app is in bg mode, while app is killed how to manage the content.

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

      Thanks for the suggestion. I'll definitely try to cover it soon.
      Glad that you liked the videos. Thanks 🙂

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

      This is actually a very good question.

    • @RaviRanjan-xl7fk
      @RaviRanjan-xl7fk 2 ปีที่แล้ว

      @@iCode_Happy_Coding Is there any video that came out for this? I just wanted to understand how any application downloading multiple videos or audio or any file type in the background. eg wynk music or and downloaded. work.

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

    Please more content on System design.

  • @Batmanyank
    @Batmanyank 2 ปีที่แล้ว +1

    Very informative. Thank you.

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

    Why swift language called protocol oriented programming language (POP)?

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

    hint aksanına sağlık güzel bilgiler :)

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

    🔥🔥🔥

  • @gameration6450
    @gameration6450 24 วันที่ผ่านมา

    2:04 - "Classes can be deinitialized"
    This is a little misleading. We on our own can't deinitialze classes, rather we can just use deinit() to "know" when the "system deinitializes the objects" of a class. We can not call deinit() explicitly anywhere. If we have definied this method in our class, the system will call it and execute whatever code it contains at the time of deallocation of that object.

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

    doing gods work

  • @harikrishnan7245
    @harikrishnan7245 2 ปีที่แล้ว +1

    Thanks Pallav. The video is really informative. By the way, let me ask you a question. Why we use Class for implementing UIViewcontroller instead of Struct? Obviously Struct doesn't support inheritance.I understand that the system is executing a number of super class methods automatically by inheriting a class from UIVIEWController. In addition to that, we need a reference type object in the case of a UIViewController . Is there any critical problem apart from this for not using struct instead of class. After all struct is faster and thread safe on comparing with Class. Correct?

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

      But then u gave the answer already. Inheritance is the purpose.

    • @nathtanmay
      @nathtanmay 6 หลายเดือนก่อน

      I guess the actual reason should be that the classes are reference types. A viewcontroller's lifecycle can be as long as the app's lifecycle. So, by making it a reference type we can ensure that every time we get that particular viewcontroller (from navigation stack etc..) we are pointing to the same reference and if we are making any changes then it should hold that changes.

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

    Awesome

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

    Missing Point
    1. Structure not support self Type as property while class support this

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

    Your channel notification means something interesting to learn :)