Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is diffrence between Function Oriented Design and
Obeject Oriented design

Answer Posted / biren chetry

Object oriented design Function oriented design Modeling
Objects are modeled based on real-world objects. For example
in a banking software the objects mimic real-world
equivalents like Account, Customer etc. Functions are
modeled on distinct and independent functionality. For
example in banking system the key functions include
transferFunds, checkBalance etc.
Abstraction
Objects are normally abstracted as nouns like Person,
Address etc.
Functions are usually abstracted as verbs like
subtractBalance, getAmount etc. State The state is usually
distributed among various objects. For example each of
objects Person, PersonAddress, PersonContact have its own
state The state is normally centralized and functions share
and access the state. For example Person details are stored
centrally in file or in database and multiple functions like
getPersonDetails, UpdatePeronAddress access the centralized
state.
Hierarchy
Objects are logically grouped based on their interaction
Functions are grouped based on their functionality. Multiple
sub functions can be grouped to form a bigger function.

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Suppose we have file(ps), dont know how many records are there. Move half of the records to 2 files. How can we do?

1021


What is the use of repository pattern?

1057


Is singleton an anti pattern?

1016


What are the SDLC phases you have invloved ?

2762


What is proxy in design pattern?

1051


What is difference between function oriented design and object oriented design?

1099


What are the design patterns you know explain?

1113


What non-visual coding tools are available for web design?

2629


What is the difference between adapter and facade?

1227


What is the creational design pattern?

1089


What is the difference between 3 tier and n tier architecture?

1073


Give me example of chain of responsibility design pattern?

1085


How did you design your unit tests?What about integration tests?

2249


What are the most commonly used design patterns?

1076


What are the types of participants of the prototype design pattern you will get?

1041