

- NET OOPS INTERVIEW QUESTIONS AND ANSWERS PDF HOW TO
- NET OOPS INTERVIEW QUESTIONS AND ANSWERS PDF CODE
Polymorphism is a combination of 'poly' and 'morph', which means 'many shapes'. For example, all the wires connected inside a car are hidden from the consumer and show only the necessary details like steering wheel, brakes. Only the important information is shown to the user and the implementation details are hidden. This can be visualized as putting everything that is necessary together, binding it all, putting that into a capsule, and the encapsulated one is presented to the user.Ībstraction hides unnecessary details, and shows only the ones which are necessary. The data specified in one class can be hidden from other classes. Private, Protected, Public are different types of access modifiers in OOPs.Įncapsulation is the process of putting all the necessary data members and methods of a program together for certain tasks into a single unit and the data which are not necessary for a normal user are hidden. The access modifiers determine the scope of the method or variables that can be accessed from other objects or classes. This points to the current object, differentiating the global object from a current one.Īccess modifiers in OOP are keywords which are used to set the accessibility of classes, methods, and other members. The 'this' keyword is used to refer to the current object of a class. This is the same as the object that has its own attributes and behavior.ħ. Every individual car has its own attributes based on state and behavior like name, color, weight, speed, number of seats. The class is compared to the blueprint of a car, and object as an individual car. To understand the concept of class and object, we can take cars as an example. Provide a real-life example to explain class and object. The object, unlike class, consumes memory. In the real-world, the object is an entity based on the class blueprint, to which an user interacts. One can create many objects to a class.Īn object is an instance of a class.

List down some of the main features of OOPS.Ī class is a user-defined prototype that consists of a number of variables, attributes and functions. PASCAL, C are some of the languages that are based on the structured programming paradigm.ģ. This paradigm provides less flexibility and abstraction.
NET OOPS INTERVIEW QUESTIONS AND ANSWERS PDF CODE
Programs are constructed using a set of modules or functions.It is difficult to reuse the code in structured programming. Structured Programming is a programming paradigm which is considered as a predecessor to Object Oriented Programming. What is the difference between Abstract class and Interface class?īasic OOPs Interview Questions and Answers What is Access Modifier in Java? What are the different types of Access Modifiers and their scope? What are static methods in Java? Can they be used in Inheritance? Are there any limitations of Inheritance? Why Multiple Inheritance is not supported in Java? How many types of inheritance are there in Object-Oriented Programming? Which inheritance types does Java support? What are the advantages of Object-Oriented Programming features in Java?

What are the operators that cannot be overloaded? What is the importance of garbage collection? Explain the constructor and the destructor.

NET OOPS INTERVIEW QUESTIONS AND ANSWERS PDF HOW TO
How to call the base class method without creating an instance? List down some of the main features of OOPS. Basic OOPs Interview Questions and Answers.
