Question - Feature Of Java?
Answer -
These are the features of Java, will see all of them one by one but right now we are going to understand Object Oriented Programming Language.
*Question - What is Object Oriented Programming?
Answer - Object Oriented Programming is a paradigm ( way of writing a program ).There are many ways of programming like
- Procedure Programming (structural programming)
- Object-Oriented Programming *
- Constraint Programming
- Logical Programming
- Functional Programming
- and more ...
Note -- None of the styles is perfect. We use Object Oriented Style because of many benefits of object-oriented and it is the most popular and used.
- It's Abbreviation of OOPs
- OOPs Stands for OBJECT ORIENTED PROGRAMMING System
- It is a kind of Model or Concept or Method of implementation of code
- Used to define implement (wright) programs
- methodology (way of developing a program) based on class and objects instead of just functions and procedures.
- In these types of programming, you have to make CLASS because without a class you can't make OBJECTs. OOPs is based on OBJECTS that is generated from the CLASS.
- It has some important features that we will be using during developing our code. Some are
○ Encapsulation
○ Abstraction
○ Polymorphism
○ Inheritance etc (there are more features will see later)
- Examples of OOP's languages are C++, C#, JAVA, PHP, SMALL TALK etc.
-Objects are created from Classes. (also say that object is an instance of the class)
" OBJECT-ORIENTED PROGRAMMING refers to a programming methodology based on objects, instead of just functions and procedures. These objects are organized into classes, which allow individual objects to be group together. Most modern programming languages including C++, C#, JAVA, PHP, etc are object-oriented languages."
0r
" OBJECT-ORIENTED PROGRAMMING is a method of implementation in which software is organized (written) as a discrete collection of objects."
Question - What are the characteristics/features of OOP?
Answer -
- Class
- Objects
- Inheritance
- Abstraction
- Encapsulation
- Polymorphism
- Modularity
- Concurrency
- Persistence
Note -These are the features must be satisfied for any programming language then only that language is known as object-oriented programming language.
(Don't Worry we will see all there features one by one...for now, just remember these names)
No comments:
Post a Comment