943,948 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 467
  • Java RSS
Feb 18th, 2009
-1

application

Expand Post »
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
Similar Threads
Reputation Points: 9
Solved Threads: 0
Newbie Poster
milgo is offline Offline
3 posts
since Feb 2009
Feb 18th, 2009
0

Re: application

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).
Featured Poster
Reputation Points: 653
Solved Threads: 151
Nearly a Posting Virtuoso
stephen84s is offline Offline
1,316 posts
since Jul 2007
Feb 18th, 2009
0

Re: application

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
Reputation Points: 935
Solved Threads: 356
Nearly a Posting Maven
stultuske is offline Offline
2,497 posts
since Jan 2007
Feb 18th, 2009
0

Re: application

if (above40)
reject cuz you're too old


There you go.
Reputation Points: 874
Solved Threads: 352
Posting Maven
BestJewSinceJC is offline Offline
2,758 posts
since Sep 2008
Feb 18th, 2009
0

Re: application

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
Reputation Points: 11
Solved Threads: 7
Junior Poster
notuserfriendly is offline Offline
102 posts
since Jan 2007
Feb 18th, 2009
0

Re: application

@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-...ed_programming
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 839
Posting Genius
Ezzaral is offline Offline
6,761 posts
since May 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: echo char
Next Thread in Java Forum Timeline: Nebeans and GXL





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC