Oops

415 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
415
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
20
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Oops

  1. 1. Page 1 OOPS Concepts in Java By Rohit Mundra Varun Kumar Santosh Dora Shiva krishna Murali krishnan
  2. 2. Page 2 OOP "Object-Oriented Programming” refers to a programming methodology based on objects, instead of just functions and procedures. 1) Class 2) Object 3) Abstraction 4) Encapsulation 5) Inheritance 6) Polymorphism
  3. 3. Page 3 Types of Inheritance There are 5 types of inheritance as shown below. 1.Single Inheritance 2.Multilevel Inheritance 3.Multiple Inheritance 4.Hierarchical Inheritance 5.Hybrid Inheritance
  4. 4. Page 4 Single Inheritance
  5. 5. Page 5 Example of Single Inheritance
  6. 6. Page 6 Multilevel Inheritance
  7. 7. Page 7 Example of Multilevel Inheritance
  8. 8. Page 8 Multiple Inheritance Java supports multiple inheritance partially through interfaces.
  9. 9. Page 9 Hierarchical Inheritance
  10. 10. Page 10 Hybrid Inheritance
  11. 11. Page 11 • Encapsulation is the technique of making the fields in a class private and providing access to the fields via public methods. If a field is declared private, it cannot be accessed by anyone outside the class, thereby hiding the fields within the class. For this reason, encapsulation is also referred to as data hiding. Encapsulation Inheritance
  12. 12. Page 12 Encapsulation Program
  13. 13. Page 13

×