OOP Presentation 15401221062
OOP Presentation 15401221062
CA1- Evaluation
Topic of PPT Object Oriented Programming (JAVA)
Subject Name Object Oriented Programming
Object:-
Object are the basic run time entities is an object oriented system.
Object is a insance of class.We can say that objects are variables of
the type of class.Object can be student,employee,car,book,etc..
Class:-
A class is a user defined data type.
Classes are not objects – rather they are the blue print for creating
objects the memory.
Variable declared in class are called data member and functions declared in
class are known as member functions.
A class is an abstraction of the real world entites with similar propertites.
Data Abstraction :-
• Abstraction refers to the act of representing essential features without
including the background details or explanations.
Java Static Method :-
• A static method belongs to the class rather than object of a class.
• Static method can access static data member and can change the
value of it.
Java Static Keyword :-
• The static keyword in java used for memory management mainly.
• We can apply java static keyword with variables,methods,blocks and
nested class.
Java Constructors :-
• Constructor in java is a special type of method that is used to
initialize the object.
Rules for creating java constructor :
a. Constructor name must be same as its class name.
b. Constructor must have no explicit return type.
Dynamic Binding (Late Binding):-
• Dynamic Binding or late binding refers to linking a procedure call
to the code that will be executed only at run time.
Message Passing :-
• Object communicate with one another by sending and
receiving information.
Student.setData(Id,Name)
Advantages of OOP :-
i. platform- independent.
ii. It is provides an efficient memory allocation strategy.
iii. It is easy to modify.
Disadvantages of OOP :-
i. It is slower than other programs.
ii. It required a lot of effort to create.
iii. It provides no backup facility.
Example of a JAVA Program:-
class HelloWorld {
public static void main(String[ ] args) {
System.out.println("Hello, World!");
}
}
Output:-
Hello, World!