answersLogoWhite

0


Best Answer

A method that return a value should have a return statement. The method signature should indicate the type of return value.

While in the case of a method that does not return a value should not have a return statement and in the signature, the return type is void.

When using a method that doesn't return a value, a programmer can not get a value from that function, but instead, it can only change variable values and run other methods.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference in using a method that return value and method that does not return value in object orinted programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Difference between links and association in object orinted analysis and design?

link is related to objects whereas association is related to classes


What is the difference between a class method and object in object-oriented C?

Class methods are the member functions that act upon member variables. An object is an instance of a class. C does not support object-oriented programming, but C++ does.


What object base programming?

Object base programming is the one that in programming code only object is used to call method(function, procedure whatever you call it). Some small amount of primitive data type is also used. Take a dog as object. Dog has name, age. if you want to find out the name and age of the dog, you need to make a method called public getName(){retrun name} etc. and call the same method. while you call the method, you must use the dog object. In this type of programming object carries its properties with it. that is it my frind. good luck


What is the difference structured programming language and java?

There is no difference between procedural programing language & structure programing language


What is the difference between object oriented programming from text based programming?

An object-oriented program is made up of objects. An object has an internal state.Every object is an instance of (belongs to) a class.In simple terms a class is just a template for the object. It contains details of all the behaviour of an object along with what state information the object has. Text Programming:-Users want a Language that is more efficent, re-usable, easily maintainable, easy to read, and easy to write code in.

Related questions

Difference between links and association in object orinted analysis and design?

link is related to objects whereas association is related to classes


What is the difference between java and object oriented programming?

java is a programming language/platform that embodies object oriented programming concepts. The question of what is the difference is like asking what is the difference between cars and a Volvo.


What is the difference between a class method and object in object-oriented C?

Class methods are the member functions that act upon member variables. An object is an instance of a class. C does not support object-oriented programming, but C++ does.


Difference between conventional programming and object oriented programming?

diff between oops and conventional programming


What object base programming?

Object base programming is the one that in programming code only object is used to call method(function, procedure whatever you call it). Some small amount of primitive data type is also used. Take a dog as object. Dog has name, age. if you want to find out the name and age of the dog, you need to make a method called public getName(){retrun name} etc. and call the same method. while you call the method, you must use the dog object. In this type of programming object carries its properties with it. that is it my frind. good luck


Thw importance of ASP.net?

Object Oriented Programming is a subset of structured programming. After objects are created in a program, you use those objects and their methods to operate the program. In structured programming, you have a program with many methods in which you can use. One difference between structured programming and object-oriented programming is that structured programming uses the data that is given to them through parameters, while in object-oriented programming, the methods act upon the object's data (fields). This makes programming much easier because the fields are all there and you do not have to make sure that the correct field is passed to the correct method. All you have to do is call which field you want to work with.


Difference between teaching method and teaching aid?

[object Object]


What is the difference between Object-oriented software engineering and software engineering?

Object-oriented programming is just one possible methodology in the field of software engineering. It is a type of software engineering.See the related questions for a definition of object-oriented programming.


What is the components of OOPS?

Java is an object oriented programming language. The various object oriented concepts in it are: * Class * Object * Instance * Method * Inheritance * Polymorphism * Abstraction * Encapsulation etc...


Is c plus plus an object orinted language?

Yes, it is object-oriented, but it is not 100% object-oriented because it supports the concept of primitive variables (which it inherits from C) such as char, int and bool, as well as pointer variables. In a 100% object-oriented language, these primitives would be implemented as objects, as they are in C# and Java. C++ is best described as a hybrid of procedural, structured and object-oriented programming paradigms.


What is the difference between oriented programming language and high programming language?

Set/subset: Some high level programming languages are object oriented, but not all of them.


What is the distinct difference between object oriented concept and object oriented programming?

Object oriented concepts are a generalisation of the object oriented principals (encapsulation, inheritance, polymorphism and abstraction) without specifying a particular implementation of those principals. Object oriented programming is the application of those principals through an object oriented programming language.