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 Hyderabad

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 serialVersionUID , why it different for each bean? serialVersionUID = 42L;
The serialization runtime associates with each serializable class a version number, called a serialVersionUID, which is used during deserialization to verify that the sender and receiver of a serialized...
Srilatha N
If a class contains only a private constructor and no other constructor, is it possible to create object of that class? If yes how?
Yes, It is possible. But, Object can be created only with in that class (either in any method or block).
Shabbir
Which institute is best for java core learning?
For core java RPISE(rajesh patkar classe) is very good . he thought you from the sacratch . i was did there one course, There are lots od students apart from IT backgrounf was came there and they understood...
Hrhrh
What is the difference between Java and Advanced Java?
Java = Core + Advance(Servlets, JSPs & EJB)
Anu

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

Ask a Question

Related Lessons

Implementation: What Is JPA And JPA?
The basic Java framework to access the database is JDBC. Unfortunately, with JDBC, a lot of hand work is needed to convert a database query result into Java classes. JPA allows us to work with Java classes...

Method Overloading vs Method Overriding
1. Method Overloading: Method overloading means a same method with same name can have different implementations/body by changing one of the follwing thing: 1) Number of Parameters 2) Order of Parameters 3)...

A Tip for the beginners.
The world of programming languages right now is too dense, and too big for any beginner. But at the same time, because of so many options available, it's easier too. You can start with any language that...

Class and Objects in Java
Class is a template or a blueprint which is used to describe an object. On other hand Object is a reference of a class which follows all the stuff written inside the class. How about taking the whole tour in the following video

Introduction to Course Content
Video about what we are going to learn throughout the Java Training Session .

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