ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

What are the basic concepts of object oriented programming?

user-image
تم إضافة السؤال من قبل Yasmeen Husam , Web Developer , Al Fahid Systems
تاريخ النشر: 2019/01/31
Rakesh Kumar
من قبل Rakesh Kumar , Senior Software Developer , YorkWebSolution

OOP programming is a terminology related to class, objects and other concepts like Inheritance,  Abstraction, Encapsulation, Polymorphism etc.

Ibrahim Ismail
من قبل Ibrahim Ismail , .net developer , Department of Information Systems of the armed forces

Inheritance, Polymorphism, Abstraction, Encapsulation

مستخدم محذوف‎
من قبل مستخدم محذوف‎

 Encapsulation, Abstraction,Inheritance and Polymorphism

Noman Zia
من قبل Noman Zia , Head of Development , Prismpay Solutions

Four Building blocks of OOP programming are Inheritance, Polymorphism, Abstraction, Encapsulation

Omar Hassan
من قبل Omar Hassan , Software development Team leader & International Business Development Manager , SUNSON TECH

Class, Object, Encapsulation, inhertience, polymorphism. 

Dhanalakshmi N
من قبل Dhanalakshmi N , Agrium U.S. Inc

Class, Objects, Polymorphism, Inheritance, Encapsulation and Abstraction

Fahad Asif
من قبل Fahad Asif , Students , uaf

bject-Oriented Programs mainly based on Object's Properties and Behaviours.

Shihabudheen US
من قبل Shihabudheen US , Member of Technical Staff , Salesforce

Object-oriented programming uses objects in programming. It aims to implement real-world entities like inheritance, hiding, polymorphism etc in programming. The main aim of OOP is to bind together the data and the functions that operate on them so that no other part of the code can access this data except that function.

Ehab Al-bakri
من قبل Ehab Al-bakri , Software Developer - Senior Consultant , PwC

is techniques based on objects and classes

Duminda Hettiarachchi
من قبل Duminda Hettiarachchi , Java / PLSQL Developer , Napera Software Solutions

Object-Oriented Programs mainly based on Object's Properties and Behaviours. 

For an example, a Student is a real-world object. Student id, name, age can define as Property Data. Further Student activities such as upload the assignment, log in to the system, update profile can be defined as behaviours. Before entering into Object-oriented programming, you should be able to identify objects and their properties, behaviours. 

Next important thing is How to apply Objects into the program. For this, We use classes to represent the object in the program. The class is blueprint or template for the object.  For this, you can use any kind of object-oriented programming language to represent an object in the code. Following example used show Student object using Java Programming Language.

Ex -

Class Student {

  int id;

  String name;

  public void loginToSystem(){

  }

}

After that you should creating instance of the class for represent , single instance of the object.

Example - when need represent following student info represent in program

Student ID:   Studnet Name: Anne

Create an Object

Student s1 = new Student();

s1.id =

s1.name = "Anne"

In addition, you have to learn many more things inside these concepts. I just highlighted the key topics required for Object-oriented programs.

 Finally, after learning the basic key topic of objects oriented programs, you should follow the best practice of object-oriented programming. Simply develop programs using Object-oriented Principles.

1. Encapsulation

2. Inheritance

3. Abstraction

4. Polymorphism

You may refer to Oracle or any other OOP tutorial web site to learn Object Oriented Concepts deeply.

Abduljalil Alrumaih
من قبل Abduljalil Alrumaih , Summer internship , Saudi Electricity Company

Is a programming methods related to concepts of Class, and Objects.

المزيد من الأسئلة المماثلة