Professional Documents
Culture Documents
Notes Part 1
Notes Part 1
For now , objects can be considered as an entity with some data and some certain actions
to be performed on data !
Objects are blueprint of Class !
i.e class is the layout of an object !
Classes :-
It is the entity that binds the data and functions performed on data in a single
independent entity !
Objects:-
They are the real entities and are exact copy of the class .It is through objects that we
manipulate the data/functions of the class.
1.Encapsulation
The binding and wrapping up of data and the function performed on data in a single unit called class is
known as encapsulation.
It is enabled by the keyword 'class'
2.Abstraction
The act of representing only essential features without including the background detials
3.Inheritence
When properties of 1 class are taken (inherited) from another class
The class that takes the properties are called as child/derived/sub - class
The class that gives the properties are called as parent/base/super - class
4.Polymorphism
Single entity, many forms.
One function behaves differently for different objects
Compiler
It executes the whole program at once
Interpreter
It executes the whole program line by line
Multi-threading:-
Program is partitioned into modules which reduces the complexity of program
and creates a well defined boundey for the programs.
Secure
There is no direct access to the ram , in between lies the JVM
Typed-language
Each variable is specified with the type of data it will hold