- Encapsulation - Hiding the implementation details of a
Class. Once a class is Encapsulated then we Cannot directly
access that class members. We can achieve encapsulation
like the following,
Eg: public class <class Name> {
private <member_1>;
private <member_2>;
}
In the above example members of the public class declared
as private. So any other class members cannot directly
access the members of that class, and those are stored as a
Single Unit. That is Encapsilation.
Real Time Example - Medical Capsule (Different medicines
packed as in single Capsule)
- Polymorphism - Ability to process an Object differently
depending upon thier Data Type or Class.
In simple words, One function - different implementations.
There two types of Polymorphism :
1) Compile time Polymorphism - The compiler know that the
way of execution of the program , means - which method
have to be invoked at compilation time. It is achieved by
Method Overloading - Same method name, may be different
parameters, may be different data type, may be different
return type. Method Overloading perform only inside of the
class.
2) Run-Time Polymorphism - The compiler doesn't know the
way of execution of the program. It will take the decision
for execute the program at Run-Time. It is achieved by
Method Overriding - Same Method name, same signatures,
similar DataType, Return type also should be the same.
Method Overriding perform at Subclass.
Real time Example - A man perform multiple role.
He is Employee of his office,He is father of his Childrens,
He is Husband of his wife, He is Son of his Parents.
- Inheritance - A class of object can inherit the properties
and methods of an another class of object. Advantage :
reusabilty of code and accessibilty of properties and
methods of derived class by subclass.
Real Time example - Father - Son Relationship.
I hope you will get idea about all those things.
If any issue let me know imm'tly.
Regards,
S.Sivadasan
Coromandel Infotech India Ltd.,
sivadasan.s@c2il.com
Chennai.
相关推荐
SQL语句性能分析之explain
详细讲解在Oracle中如何使用explain_plan,值得参考和收藏学习。
mysqlexplain
django-explain- 一个助手用于django queryset取得 EXPLAIN 或 EXPLAIN ANALYZE OUTPUT
MySQL explain 笔记整理 MySQL explain 笔记整理
Mysql Explain
在分析查询性能时,考虑EXPLAIN关键字同样很管用。EXPLAIN关键字一般放在SELECT查询语句的前面,用于描述MySQL如何执行查询操作、以及MySQL成功返回结果集需要执行的行数。explain 可以帮助我们分析 select 语句,让...
mysql explain
6.please explain the relationship between classpath and package,and the relationship between them and java files. 7.what is the differense session Bean and Entity Bean ? 8.please write out the meaning...
Explain关键字详解,mysql分析工具,方便快速理解原理
NULL 博文链接:https://babydeed.iteye.com/blog/1567772
DB29.7Visual Explain教程帮助你在db29.7下把SQL或Xquery说明语句的访问方案作为一个图来查看。
MySQL 性能优化 Explain ,MySQL 性能优化 ExplainMySQL 性能优化 ExplainMySQL 性能优化 ExplainMySQL 性能优化 ExplainMySQL 性能优化 ExplainMySQL 性能优化 ExplainMySQL 性能优化 Explain
oracle执行计划,oracle explain plan,在ORACLE数据库中,需要对SQL语句进行优化的话需要知道其执行计划,从而针对性的进行调整.ORACLE的执行计划的获得有几种方法,下面就来总结下
good material in learning db2 explain plan
Mysql Explain 详解
Mysql Explain详细解析
02-VIP-Explain详解与索引最佳实践.pdf
Hive on Spark EXPLAIN statement : 讲述了 Common Join / Map join / Bucket Map Join / Sorted Merge Bucket Map Join / skew join 在explain 中的 树结构 。In Hive, command EXPLAIN can be used to show the ...