Java oops | java oops In java programming October 7, 2020October 7, 2020 lifebix OOps(Object oriented programming System): Class Object Datathiding Abstraction Encapsulation(Data Hiding +Abstraction) titly Encapsulation Constructors Inheritance(Is-A Realtion) Modifiers Has-A Realtion Method Signature method Overriding method Over Loading polymoprphism abstract class and abstract methods Interface ———————————————– Class modifers/keywords(optional) class ClassName{ varibles modifers/keywords(optional) datatype variblesName=constantValue; methods modifers/keywords datatype methodName(datatype arg,datatype ar2,……………..){ return value; } } Datathiding: 1. Hiding of data or information, so that outside persons can’t access our dataDirectily. 2. By using of private modifer we can implement DataHiding. 3. Advantage is security. class Example{ private int one=908; } Abstration: 1. Hiding internal implementation and details just highlate set of services what we are offering is called as Abstraction. 2. By using of Interfaces and abstract classes we can achive Abstraction 3. Abstraction advantage is security out side persons can’t understanding what you are doing inside 4. disadvantage is process is slow Encapsulation: Encapsulation = datahiding+abstraction