Day 17 || OOPS Concept - part 1 || Salesforce developer interview preparation

Пікірлер: 3

  • @kashishbansal3024
    @kashishbansal30243 ай бұрын

    Hi Mohit I have two questions 1. If the interviewer asked us why we actually need the interface or inheritance when we can use normal class also. We can call them in our class and not in the inherited way or the interface way. What will be the exact answer that we should give to an interviewer? 2. When can we know that like in this scenario we have to use inheritance or interface in our practical project?

  • @SalesforceandInterviewsInHindi

    @SalesforceandInterviewsInHindi

    2 ай бұрын

    When we do a large implementation, we need functionalities which will be used by multiple classes and we leverage OOPS features in such scenarios. the decision to use it or not ultimately comes down to the point that will it make our life easier or not.. yes we can write separate class and method but that will ultimately make us do more repetitive work again and again plus it will also create other problems.

  • @kashishbansal3024

    @kashishbansal3024

    Ай бұрын

    @@SalesforceandInterviewsInHindi Thank you so much for clarifying