954,545 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

application

hi,im new in java & i really dont have the basic concepts of object oriented programming.please help me with the code for application class that automatically rejects anyone above the age of 40.kindly include comments so that i can understand better.thanks

milgo
Newbie Poster
4 posts since Feb 2009
Reputation Points: 9
Solved Threads: 0
 

So post your code so we know what the heck you are talking about.

And if you do not know the basic concepts of object oriented programming or Java for that matter, what are you doing writing applications with them ???

First learn the concepts of the language, the methodology of OOP so that you have a strong foundation and then use the "learn as you go" approach with the rest of the cosmetic stuff (Collections API, etc).

stephen84s
Nearly a Posting Virtuoso
1,443 posts since Jul 2007
Reputation Points: 668
Solved Threads: 154
 

1. start off with some lineair developing in Java, to get to know the syntaxis
2. learn to think in an OO way, and learn how to code that in Java
3. now you can think about writing such applications

stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
 

if (above40)
reject cuz you're too old


There you go.

BestJewSinceJC
Posting Maven
2,772 posts since Sep 2008
Reputation Points: 874
Solved Threads: 354
 

well really the purpose of OOP is to make you learn easier. so what you do to start is lay down the steps that you can accomplish it without code but based in java.
like are you going to enter a number form the keyboard ?
if so assing lets say "input" and if input >40 " S.o.p('TOO OLD")
if input <40 S.o.p("GET IN")
unless you want to store your input .
If you are completely new to java and dont even know to write "hello worl"
well goodbye

notuserfriendly
Junior Poster
104 posts since Jan 2007
Reputation Points: 11
Solved Threads: 7
 

@notuserfriendly: What you posted really has nothing to do with OOP. And the purpose of OOP is to manage organizational and behavioral complexity in code design - not "learning easier". You may want to do a bit more reading on the subject:
http://en.wikipedia.org/wiki/Object-oriented_programming

Ezzaral
Posting Genius
Moderator
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You