5. OOPS.pdf - JAVA Means DURGA SIR 183 nd DURGASOFT 202,2...

This preview shows page 1 - 4 out of 71 pages.

JAVA Means DURGA SIR 183 DURGASOFT, # 202,2 nd Floor,HUDA Maitrivanam,Ameerpet, Hyderabad - 500038, 040 – 64 51 27 86, 80 96 96 96 96, 9246212143 |
Image of page 1

Subscribe to view the full document.

JAVA Means DURGA SIR 184 DURGASOFT, # 202,2 nd Floor,HUDA Maitrivanam,Ameerpet, Hyderabad - 500038, 040 – 64 51 27 86, 80 96 96 96 96, 9246212143 | Object Oriented Programming (OOPS) Agenda: 1. Data Hiding 2. Abstraction 3. Encapsulation 4. Tightly Encapsulated Class 5. IS-A Relationship(Inheritance) o Multiple inheritance o Cyclic inheritance 6. HAS-A Relationship o Composition o Aggregation 7. Method Signature 8. Polymorphism o Overloading Automatic promotion in overloading o Overriding Rules for overriding Checked Vs Un-checked Exceptions Overriding with respect to static methods Overriding with respect to Var-arg methods Overriding with respect to variables Differences between overloading and overriding ? o Method Hiding 9. Static Control Flow o Static control flow parent to child relationship o Static block 10. Instance Control Flow o Instance control flow in Parent to Child relationship 11. Constructors o Constructor Vs instance block o Rules to write constructors o Default constructor o Prototype of default constructor o super() vs this(): o Overloaded constructors o Recursive functions 12. Coupling 13. Cohesion 14. Object Type Casting o Compile time checking o Runtime checking Difference between ArrayList l=new ArrayList() & List l=new ArrayList() ? In how many ways get an object in java ?
Image of page 2
JAVA Means DURGA SIR 185 DURGASOFT, # 202,2 nd Floor,HUDA Maitrivanam,Ameerpet, Hyderabad - 500038, 040 – 64 51 27 86, 80 96 96 96 96, 9246212143 | Singleton classes Factory method Data Hiding : Our internal data should not go out directly that is outside person can't access our internal data directly. By using private modifier we can implement data hiding. Example: class Account { private double balance; ...................... ; ...................... ; } After providing proper username and password only , we can access our Account information. The main advantage of data hiding is security. Note: recommended modifier for data members is private.
Image of page 3

Subscribe to view the full document.