Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
15 views
Interview Question OOPs
Interview
Uploaded by
Risdan Kristori
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Interview Question OOPs For Later
Download
Save
Save Interview Question OOPs For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
15 views
Interview Question OOPs
Interview
Uploaded by
Risdan Kristori
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Interview Question OOPs For Later
Carousel Previous
Carousel Next
Save
Save Interview Question OOPs For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 3
Search
Fullscreen
Interview Questions with Answers Note: These questions are based on my past experiences and research Chapter 1. Object Oriented Programming Basic Level: 4. What is Object Oriented Programming? Object-Oriented Programming(QOPs) is a type of programming that is based on objects rather than just functions and procedures. Individual objects are grouped into classes. OOPs implement real-worid entities like inheritance, polymorphism, hiding, ete into programming, It also allows binding data and code together. 2. Why use OOPs? OR Advantages of OOPs OOPS allows clarity in programming thereby allowing simplicity in solving complex problems Code can be reused through inheritance thereby reducing redundancy Data and code are bound together by encapsulation OOPS aliows data hiding, therefore, private data is kept confidential Problems can be divided into different parts making it simple to solve The concept of polymorphism gives flexibility to the program by allowing the entities to have multiple forms, 3. What are the main features/pillars of OOPs? Inheritance Encapsulation Polymorphism, Data Abstraction 4. What are the main features of OOPs? Inheritance Encapsulation Polymorphism, Data Abstraction Scanned with CamScanner5. What is a class? ‘Aclass is a prototype that consists of objects in different states and with different behaviors. It has a number of methods that are common to the objects present within that class, 6. What is an object? ‘An object is a real-world entity which is the basic unit of OOPs for example chair, cat, dog, etc. Different objects have different states or attributes, and behaviors. Note: Class is a concept and to map this concept in real ife is an object. 7. What is the difference between a class and a structure? Class: User-defined blueprint from which objects are created. it consists of methods or sets of instructions that are to be performed on the objects. Structure: A structure is basically a user-defined collection of variables which are of different data types. 8. Can you call the base class method without creating an instance? Yes, you can call the base class without instantiating itt: © Itisa static method ¢ The base class is inherited by some other subciass ‘Aclass is basically a template or a blueprint A real-world entity which is an instance of a class within which objects can be created Binds methods and data together into a single unit ‘An object acts ike a variable of the class ‘An object isa physical entity ‘A class isa logical entity ‘Objects take memory space when they are | Aclass does nat take memory space when created created (Objects can be declared as and when required | Classes are declared just once 9. What Is inheritance? Inheritance is a feature of OOPs which allows classes to inherit common properties from other classes. For exampé, if there is a class such as ‘vehicle’, other classes like ‘car’, bike’, elc can inherit common properties from the vehicle class. This property helps you get rid of redundant code thereby reducing the overall size of the code Scanned with CamScanner9, What are the different types of inheritance? Single inheritance Mutiple inheritance Mutiievel inheritance Hierarchical inheritance Hybrid inheritance 10. What is the difference between multiple and multilevel inheritance? ‘Muttlevel inheritance means a class inherits Multiple inheritance comes into picture when 3 cecWhnteanesSitieset class inherits more than one base class from another cl some other base class Example: A class describing a sports car will Example: A class defining a child inherits from ete een ne cor uhach inturn two base classes Mother and Father eee eee 14. What is hierarchical inheritance? Hierarchical inheritance refers to inheritance where one base class has more than one subclass. For example, the vehicle class can have ‘car’, ‘bike’, etc as its subclasses. 412. What are the limitations of inheritance? ‘¢ Increases the time and effort required to execute a program as it requires jumping back and forth between different classes ‘© The parent class and the child class get tightly coupled ‘¢ Any modifications to the program would require changes both in the parent as well as the child class ‘+ Needs careful impiementation else would lead to incorrect resutts. 43. What is a superclass? A superclass or base class is a class that acts as a parent to some other class or classes. For example, the Vehicle class is a superclass of class Car. 14. What is a subclass? ‘Aclass that inherits from another class is called the subclass. For example, the class Caris a subclass or a derived of Vehicie class. 45. What is polymorphism? Polymorphism refers to the ability to exist in multiple forms. Multiple definitions can be given to a single interface. For example, if you have a class named Vehicle, it can have a method named Scanned with CamScanner
You might also like
Software Engineer Interview Questions With Answers
PDF
No ratings yet
Software Engineer Interview Questions With Answers
23 pages
Software Engineer Interview Questions With Answers
PDF
No ratings yet
Software Engineer Interview Questions With Answers
24 pages
Java Oops Interview Questions Doc PDF 1677650879
PDF
No ratings yet
Java Oops Interview Questions Doc PDF 1677650879
23 pages
oops_interview_questions
PDF
No ratings yet
oops_interview_questions
6 pages
OOPS Interview Question Bank
PDF
100% (2)
OOPS Interview Question Bank
9 pages
Oops Viva Questions
PDF
No ratings yet
Oops Viva Questions
9 pages
Basic OOPs Interview Questions
PDF
100% (2)
Basic OOPs Interview Questions
8 pages
oops
PDF
No ratings yet
oops
10 pages
Basic Oops Interview Questions For Freshers: 1. What Is The Difference Between Oop and Sop?
PDF
No ratings yet
Basic Oops Interview Questions For Freshers: 1. What Is The Difference Between Oop and Sop?
13 pages
Python 1
PDF
No ratings yet
Python 1
4 pages
Software Engineer Interview Questions
PDF
No ratings yet
Software Engineer Interview Questions
23 pages
Oops and CG
PDF
No ratings yet
Oops and CG
14 pages
Oops Interview Questions
PDF
No ratings yet
Oops Interview Questions
11 pages
Basic Oops Interview Questions For Fresher: 2. What Is Object Oriented Programming?
PDF
No ratings yet
Basic Oops Interview Questions For Fresher: 2. What Is Object Oriented Programming?
12 pages
Batch 8
PDF
No ratings yet
Batch 8
10 pages
Java Short Note
PDF
No ratings yet
Java Short Note
3 pages
OOPS java
PDF
No ratings yet
OOPS java
7 pages
Oop Is Op
PDF
No ratings yet
Oop Is Op
16 pages
FullStackCafe_QAS_1721545827128
PDF
No ratings yet
FullStackCafe_QAS_1721545827128
4 pages
OOP-3
PDF
No ratings yet
OOP-3
25 pages
Basic OOPs Interview Questions
PDF
No ratings yet
Basic OOPs Interview Questions
7 pages
corejavanotes
PDF
No ratings yet
corejavanotes
18 pages
Imprtant Questions For Exams
PDF
No ratings yet
Imprtant Questions For Exams
11 pages
Interview Questions on OOPS Using Java
PDF
No ratings yet
Interview Questions on OOPS Using Java
54 pages
What Is Oops?: 1) What Do You Understand by Oop?
PDF
No ratings yet
What Is Oops?: 1) What Do You Understand by Oop?
19 pages
What Is Oops?: Class Object
PDF
No ratings yet
What Is Oops?: Class Object
19 pages
Object Oriented Programming (OOPs)
PDF
No ratings yet
Object Oriented Programming (OOPs)
12 pages
Oop 2
PDF
No ratings yet
Oop 2
5 pages
Oops
PDF
100% (1)
Oops
12 pages
OOP-2
PDF
No ratings yet
OOP-2
47 pages
OOPs Notes-3
PDF
No ratings yet
OOPs Notes-3
19 pages
Java Notes
PDF
No ratings yet
Java Notes
67 pages
OOP Quest - Answers
PDF
No ratings yet
OOP Quest - Answers
9 pages
Basic OOPs Interview Questions
PDF
No ratings yet
Basic OOPs Interview Questions
13 pages
Mona Abdelmonem
PDF
No ratings yet
Mona Abdelmonem
19 pages
OOP?
PDF
No ratings yet
OOP?
20 pages
Ace Your Next Interview
PDF
No ratings yet
Ace Your Next Interview
29 pages
Inheritance Q&A
PDF
No ratings yet
Inheritance Q&A
12 pages
SAPABAP ORIENT OBJET onHANA
PDF
No ratings yet
SAPABAP ORIENT OBJET onHANA
20 pages
Basic OOPs Interview Questions
PDF
No ratings yet
Basic OOPs Interview Questions
13 pages
OOPS & JAVA-output
PDF
No ratings yet
OOPS & JAVA-output
8 pages
Oop
PDF
No ratings yet
Oop
23 pages
Object-Oriented-Programming-OOPs-Concept
PDF
No ratings yet
Object-Oriented-Programming-OOPs-Concept
19 pages
object-oriented-programming-quiz
PDF
No ratings yet
object-oriented-programming-quiz
14 pages
OOP Interview Question
PDF
No ratings yet
OOP Interview Question
10 pages
CS6456 - Unit2 - 2marks PDF
PDF
No ratings yet
CS6456 - Unit2 - 2marks PDF
6 pages
?OOPS CONCEPTS ?
PDF
No ratings yet
?OOPS CONCEPTS ?
19 pages
OOPS
PDF
No ratings yet
OOPS
10 pages
OO ABAP Interview Questions
PDF
No ratings yet
OO ABAP Interview Questions
10 pages
OOPs by IT Officer for You
PDF
No ratings yet
OOPs by IT Officer for You
6 pages
JAVA Inheritance - 30
PDF
No ratings yet
JAVA Inheritance - 30
30 pages
Oops Queations
PDF
No ratings yet
Oops Queations
13 pages
OOPS Interview Questions and Answers 2022
PDF
100% (1)
OOPS Interview Questions and Answers 2022
6 pages
Oops Notes
PDF
No ratings yet
Oops Notes
6 pages
OOPs_Interview_Questions
PDF
No ratings yet
OOPs_Interview_Questions
5 pages
OOPS Interview Cheatsheet
PDF
No ratings yet
OOPS Interview Cheatsheet
11 pages
7fXPngYrTf
PDF
No ratings yet
7fXPngYrTf
5 pages
Object Oriented Programming
PDF
No ratings yet
Object Oriented Programming
11 pages