UrbanPro

Learn Java Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Please tell me what Object Oriented Programming and Object Based Programming with reallife example..what is the difference between them.?

Asked by Last Modified  

18 Answers

Learn Java

Follow 0
Answer

Please enter your answer

Java Expert

Hi Ritesh, In order to be a true object oriented programming language, following 4 need to be present… 1) Abstraction - Hiding the implementation details from the user, only the functionality will be provided to the user. 2) Encapsulation - Wrapping the data/variables and code acting on the data/methods...
read more
Hi Ritesh, In order to be a true object oriented programming language, following 4 need to be present… 1) Abstraction - Hiding the implementation details from the user, only the functionality will be provided to the user. 2) Encapsulation - Wrapping the data/variables and code acting on the data/methods together as a single unit. 3) Modularity - A program as a number of unique modules, rather than as a single one. 4) Hierarchy - Hierarchy of classes in Java has one root class which is called 'Object’. Object means a real word entity such as pen, chair, table etc. However, we can call a Language Object based if that supports the first three elements. If a programming language supports the concept of Object (4th one), inherently it supports the first three elements also as they are inherent feature of an Object thus considered as object oriented. ?Java is an Object Oriented Languages because it supports all the concepts of Oops like Data Encapsulation, Polymorphism, Inheritance, Data Abstraction, Dynamic Binding etc. Visual Basic is an Object based programming Language because you can use class and Object here but cannot inherit one class from another class i.e. it does not support Inheritance. For real world example : Local burger represents object based programming feature while a McDonald burger is true object oriented programming as in every McDonald it inherits same taste :) read less
Comments

Consider college as class, students as objects. To identify a student in a college we use his name or roll number that is called as attribute or data members. Each semester is considered as a function. Object based programming language is nothing but the program that uses object concept but that does...
read more
Consider college as class, students as objects. To identify a student in a college we use his name or roll number that is called as attribute or data members. Each semester is considered as a function. Object based programming language is nothing but the program that uses object concept but that does not support inheritance and polymorphism . read less
Comments

Tutor

JavaScript is a prototype-oriented language. It can build actual objects from a constructor function and it has almost any feature that any object could have: Constructor. Methods (i.e. functions in JavaScript). Properties (since ECMA-Script 5, "getters/setters"). Instances. In JavaScript,...
read more
JavaScript is a prototype-oriented language. It can build actual objects from a constructor function and it has almost any feature that any object could have: Constructor. Methods (i.e. functions in JavaScript). Properties (since ECMA-Script 5, "getters/setters"). Instances. In JavaScript, any object has a prototype, including functions. The prototype itself is a rudimentary way of adding object members to any newly created instance of the whole object. var constructor = function() { }; constructor.prototype.text = "hello world"; alert(new constructor().text); // This alerts hello world Why JavaScript isn't an object-oriented programming (scripting) language? Because it has no feature that fits the requirements of the definition of object-oriented programming: Polymorphism: No. You can change the behavior of a prototype member, but this is just reusing the identifier. You aren't able to access the previous implementation of the member in a pseudo-derived object. Inheritance: Not at all. Maybe prototype chain might be comparable to inheritance but JavaScript (ECMA-Script 5.x or earlier versions) has no syntax-based inheritance like other OOP-based languages (i.e. Java, C#, Ruby, Python, VisualBasic.NET, ...). Encapsulation. Yes, of course, but there's no way to create actual private or internal object members. Perhaps I forgot to mention some other detail, but I honestly believe that this is a good summary. Update and summary The core difference is an object-oriented programming language has the features that an object-oriented paradigm must have in order to be considered an object-oriented programming language. Thus, JavaScript, for now, isn't an actual object-oriented programming language because it lacks actual polymorphism and inheritance. read less
Comments

Knowledge of Java , web UI etc.

Main Difference between these two are- 1. The language which itself contains objects is called as object based language and the language with follows object oriented concepts is known as object oriented language As- Object Oriented language- 1. Object oriented language supports all the features...
read more
Main Difference between these two are- 1. The language which itself contains objects is called as object based language and the language with follows object oriented concepts is known as object oriented language As- Object Oriented language- 1. Object oriented language supports all the features of OOPs. 2. Object oriented language does not has in-built object. 3. Object oriented language are Java, C#,C++ etc. Object based language- 1. Object based language does not support all the features of OOPs like Polymorphism and Inheritance. 2. Object-based language has in-built object like Javascript has window object. 3. Object-based languages are Javascript, VB etc. By, Arun Garg read less
Comments

Object Oriented Programming means you think programming components as real life objects. Here Object means any existing entity eg Car, bus, tree etc. Each Object has its own properties and functions/method. eg if PEN is an object - its fuction is writing and its properties are its color, size, shape...
read more
Object Oriented Programming means you think programming components as real life objects. Here Object means any existing entity eg Car, bus, tree etc. Each Object has its own properties and functions/method. eg if PEN is an object - its fuction is writing and its properties are its color, size, shape etc. Objects are members of classes. eg if bus, car sctoor are object then vehical is tis class. so classes are blue print of objects. read less
Comments

SUDHIR SHARMA - Computer Trainer based On Delhi

Dear Ritesh, technically OOPS contains the features of Classes, Objects, Ploymorphism, Inheritance and message passing. While OOBS does not support the features of Inheritance and Polymorphism. For details knowledge please open link and read ... http://includehelp.com/cpp-programming-language-tutor...
Comments

Tutor

Object Oriented Programming allows you to create a Objects and class and implement the relationships between them , like Inheritance, Polymorphism. Object Based languages allows you to create Objects and classes but do not allows to implement relationships between them.
Comments

Java Trainer

Generally try and describe Object-Orientated-Programming by using real world examples. For example, I might say that a class called Vehicle describes the minimum things that a vehicle is. I'll ask the person to tell me what he or she thinks a vehicle is. Sometimes they say things like "Well, like...
read more
Generally try and describe Object-Orientated-Programming by using real world examples. For example, I might say that a class called Vehicle describes the minimum things that a vehicle is. I'll ask the person to tell me what he or she thinks a vehicle is. Sometimes they say things like "Well, like a car or a truck", and I'll nod and agree with them. Then I'll ask what the differences are between a car and a truck. Sometimes they mention size, sometimes the purpose, and other things. Then I'll ask them to forget about a car, or a truck and just ask them to continue to describe a vehicle: "Oh, well it moves" "It has an operator, or a driver" etc... Soon, we know what a Vehicle is and I said that in OOP we would define a vehicle, and for the sake of argument say it can move, and give it a driver of sorts. Then I'll ask, ok, so what does a Car have? "Doors" "Windows" And then a truck.... "Doors" "windows" "More Wheels!" Soon, after lots of discussion, the other person generally has identified: 1) What constitutes a vehicle 2) What constitutes a car 3) What constitutes a truck 4) What constitutes an aeroplane. All without any technicalities. We've divided up the properties of each in to the right areas. They understand inheritance ("Yeah, a car is a vehicle, a truck is a vehicle, but a car is not a truck, it's SIMPLE, duh!"). They even understand polymorphism, "Sure, they basically do the same, but that might do it slightly different.". We can talk about behavior and where that should live in our tree of objects. Depending on their education and background, some get it faster than others. But when I compare OOP to real-life objects, most people always get it. In fact, I have found in conversations with non-technical people things I had never thought of. Vehicles don't have to be manned, for example (drones), but would a programmer have thought of the operator of the vehicle as a property of it? I am not saying it is right or wrong to have an operator mentioned, but it causes us to think about what we are modelling and what we are trying to achieve when we develop software. Now, partial template specialization, on the other hand.... :) read less
Comments

1) Object Based Language Does Not Support Oops feature i.e. Inheritance. Object Oriented Language supports all the Features of Oops including Inheritance. 2) Visual Basic is an Object based Programming Language because you can use class and Object here but can not inherit one class from another...
read more
1) Object Based Language Does Not Support Oops feature i.e. Inheritance. Object Oriented Language supports all the Features of Oops including Inheritance. 2) Visual Basic is an Object based Programming Language because you can use class and Object here but can not inherit one class from another class i.e. it does not support Inheritance. Java is an Object Oriented Languages because it supports all the concepts of Oops like Data Encapsulation, Polymorphism,Inheritance,Data Abstraction , Dynamic Binding etc. read less
Comments

Expert In java Professional

A language that provide syntax and rules, to create a program by following OOP feature is called Object Oriented Programming language, like java, .net, Small talk, A language that provide syntax to create a program using class, but not supporting syntax to implements all the concept of OOP,...
read more
A language that provide syntax and rules, to create a program by following OOP feature is called Object Oriented Programming language, like java, .net, Small talk, A language that provide syntax to create a program using class, but not supporting syntax to implements all the concept of OOP, called Object based programming language. like c++, javaScript etc.... read less
Comments

View 16 more Answers

Related Questions

What is the difference between a C program execution and a Java program execution?
When we compile C program then it convert into exe file ie Machine language with the help of OS lib file which is platform dependent . If we compile java prgram then it convert into class file with the...
Kaushal
0 0
5
How do I learn Java? From book or internet or a coaching?
It is good to learn Java from Coaching where you will get more exposure in learning at faster pace.
Suresh
0 0
7
Should I learn a Python course online or offline? What are some good Python training classes?
If it is that much simple as i have been said to learn from the internet then everyone would have been developer according to me you should learn offline by some good institute. like Praxware technologies...
Neha
0 0
8

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Java : Command Line Arguments
The parameters which are provided to the program at the command line. Eg:d:\>java a 10 20 30 Here,“java” is an interpreter, “a” is filename,10,20,30 are arguments passed to...
S

Svg Reddy

0 0
0

Migration from other languages to Salesforce
Anyone can easily migrate from other language to Salesforce. People must have skills to understand business logic.

Java Overview
Java platform overview Java platform components The Java platform consists of the following components. The Java language Like any programming language, the Java language has its own structure, syntax...
A

Akshay Shende

0 0
0

Software Development Training In Jaipur
Satyam Web Solution provides website designing &development and software designing &development training in Jaipur for various stream’s students. MCA 6 month Industrial Training/Internship B....

Difference Of Inheritance In C++ And Java
In Java , multiple inheritance is not applicable directly but we can implement the concept by using the interfaces. In c++ and Java, the common types of inheritances are: Single Multi level Hybrid Hierarchical

Recommended Articles

Before we start on the importance of learning JavaScript, let’s start with a short introduction on the topic. JavaScript is the most popular programming language in the world, precisely it is the language - for Computers, the Web, Servers, Smart Phone, Laptops, Mobiles, Tablets and more. And if you are a beginner or planning...

Read full article >

Java is the most commonly used popular programming language for the creation of web applications and platform today. Integrated Cloud Applications and Platform Services Oracle says, “Java developers worldwide has over 9 million and runs approximately 3 billion mobile phones”.  Right from its first implication as java 1.0...

Read full article >

Designed in a flexible and user-friendly demeanor, Java is the most commonly used programming language for the creation of web applications and platform. It allows developers to “write once, run anywhere” (WORA). It is general-purpose, a high-level programming language developed by Sun Microsystem. Initially known as an...

Read full article >

Java is the most famous programming language till date. 20 years is a big time for any programming language to survive and gain strength. Java has been proved to be one of the most reliable programming languages for networked computers. source:techcentral.com Java was developed to pertain over the Internet. Over...

Read full article >

Looking for Java Training Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Java Training Classes?

The best tutors for Java Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Java Training with the Best Tutors

The best Tutors for Java Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more