What is top down approach in Programming? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 15

What is top down approach in Programming?

how is it different from bottom up approach? explain with program

27th Nov 2016, 3:02 AM
somnath
somnath - avatar
21 Answers
+ 10
Don'tbe concerned with the particular language. The approaches are all about the way you think about problems. Do you start with a big picture idea and then work out what needs to be done to achieve this (scaling down and down till you reach an actual module) or do you start by solving the immediate problem ahead of you and build out multiple modules till you bundle then all later. Honestly you're going to use a mixture over time :-) It might seem inconsequential but it can potentially have a profound effect on the final outcome.
27th Nov 2016, 9:32 PM
Scott Royle
Scott Royle - avatar
+ 3
what's the difference between extends and implementing?
1st Dec 2016, 11:53 AM
Utkarsh Hemrajani
Utkarsh Hemrajani - avatar
+ 3
Procedural / functional programming usually implements top to bottom control or execution of the program. It runs the code line by line. On the other hand OOP, thanks to the object model can follows the other mode or from anywhere to wherever you want.
1st Dec 2016, 8:51 PM
Boris Atanasov
Boris Atanasov - avatar
+ 2
https://en.m.wikipedia.org/wiki/Top-down_and_bottom-up_design#Programming To me this is like divide-and-conquer vs creation. In fact, at the link, under Neuroscience and Psychology: "...A bottom-up process is characterized by an absence of higher level direction [they know where they're going by faith or intuition]...[top-down...is characterized by] a high level of direction...by more cognition, such as goals or targets..." What I'd like to know, since I think the teacher bridges the gap between creator and divider--is what you'd call the programming paradigm in the center.
28th Nov 2016, 10:03 AM
Kirk Schafer
Kirk Schafer - avatar
+ 2
In the event that anyone thinks otherwise, top-down programming and bottom-up programming have nothing to do with where the compiler starts compiling code. I can tell you with great certainty as a Java programmer that the compiler always starts at the top and works it's way down, only jumping to another place if a method is called, or at least that's how it works in Java. Furthermore, top-down and bottom-up programming is how YOU look at the code, not the compiler. Top-down programming, or stepwise design, is kind of like reverse engineering. You take an overview of whatever you're building and break it down into its base components. Bottom-up programming is the opposite: you build upwards from the project's base components before you can see an overview of the product. I hope this helps! Disclaimer: I am still learning programming and am not an expert. Please feel free to conduct your own research in order to confirm mine. Thank you, and have a nice day!
4th Dec 2016, 3:34 PM
Delaina Hardwick
Delaina Hardwick - avatar
+ 1
"A top-down approach (also known as stepwise design and in some cases used as a synonym of decomposition) is essentially the breaking down of a system to gain insight into its compositional sub-systems. In a top-down approach an overview of the system is formulated, specifying but not detailing any first-level subsystems."
29th Nov 2016, 6:59 PM
Rishabh Tiwari
Rishabh Tiwari - avatar
+ 1
top down approach means compiler start compiling the code from top to bottom. c and c++ programming languages uses top down approach where as java uses bottom up approach.
1st Dec 2016, 3:54 AM
Ravindra Gupta
Ravindra Gupta - avatar
0
no no...I want to know...like.. when I think about a program..I think in the same way it doesn't matter it is C or Java..so where is the difference??
27th Nov 2016, 2:48 PM
somnath
somnath - avatar
0
I think...in Java first we think about object..then we think what should we do with this object... that's why it is called bottom up approach.....
28th Nov 2016, 2:21 AM
somnath
somnath - avatar
0
I think with object oriented languages such as java it's more of bottom up approach since you can actually use methods which are defined later on in the program but in c functions have to be declared and defined first before they are used and that is why it is called a procedural language.
28th Nov 2016, 8:34 PM
Brian
0
top down approach uses approach in which we follow the order from the top to bottom... in fact we follow algorithm. but in OOP we use bottom up approach means we focus on data rather than following procedure. java is an oop language.
29th Nov 2016, 10:06 AM
sidhant soni
sidhant soni - avatar
0
top down approach means procedural approach of programming which c follows.... every variable you want to use should be declared either globally or just under the main function...
2nd Dec 2016, 1:48 PM
Rahul Sharma
Rahul Sharma - avatar
0
in short, whatever you use in code, should be previously defined in the code before using it. in other words, declarations always comes before definition.
6th Dec 2016, 3:47 AM
P Sandesh Baliga
P Sandesh Baliga - avatar
0
We have two ways to write codes; 1. Procedural: We can also say top down approach. Which all the codes we have written is compiling line by line. 2. OOP: Object Oriented Programming which is another type for modeling the data.
6th Dec 2016, 9:47 AM
Hassib Moddasser
Hassib Moddasser - avatar
0
It is exactly what it sounds like, the code is compiled starting from the top to bottom, Java uses a bottom top approach
13th Dec 2016, 12:44 PM
aakash
aakash - avatar
0
If you do not want to have to download something onto your computer, I recommend C++.
14th Dec 2016, 5:14 PM
Sir S Yolo
0
Top-down: I need ride. I want to make a car. It have to make an engine, and wheels, and ...(other details) Bottom-up: I will make a wheels, and engine, and connect it, and make a chassis, and seats, ... and make a car, to have a ride.
10th Oct 2017, 9:40 AM
Milos
- 1
Hey
28th Nov 2016, 6:26 PM
)7/#&8*
)7/#&8* - avatar
- 1
an or r÷fered to as android native,sandbox/ bot is (broken
5th Dec 2016, 5:32 AM
billy
- 1
like twitter and facebook??(as in example)
6th Dec 2016, 4:00 AM
billy