Code Comments
Programming Forum and web based access to our favorite programming groups.Answers in programming language : Java Question 1: Explain the difference between the following modifiers through examples: § Abstract § Final Class § Public Question 2: Through a small example, Explain the following: i) Concept of Subclasses, Super classes and Inheritance ii) What is the name of the top most class in the Java and where it is defined Question 3: List and explain the main features of Java (for e.g. multi-threading) and identify the classes/package through which they are supported. This is a Project Assignment. Answer the following question using Java. Suppose that you have to computerize a car show room which keeps the latest models of cars, and provides post sales services to customers. (i) List all important classes, their data structures and other attributes. (ii) Draw an inheritance diagram for the entire application which should comprise of base classes and sub-classes. (iii) Implement at least 3 modules. (iv) Describe different reports to be produced by the programmer. i shall be thankfull to those who will help me
Post Follow-up to this messagerohit srivastava wrote: > Answers in programming language : Java > > > Question 1: Explain the difference between the following modifiers > through examples: > > § Abstract > § Final Class > § Public > > Question 2: Through a small example, Explain the following: > > i) Concept of Subclasses, Super classes and Inheritance > ii) What is the name of the top most class in the Java and where it > is defined > > Question 3: List and explain the main features of Java (for e.g. > multi-threading) and identify the classes/package through which they > are supported. > > > > This is a Project Assignment. Answer the following question using > Java. > > Suppose that you have to computerize a car show room which keeps the > latest models of cars, and provides post sales services to customers. > > (i) List all important classes, their data structures and other > attributes. > (ii) Draw an inheritance diagram for the entire application which > should comprise of base classes and sub-classes. > (iii) Implement at least 3 modules. > (iv) Describe different reports to be produced by the programmer. > > > > > i shall be thankfull to those who will help me Don't be ridiculous. Go and do your own homework.
Post Follow-up to this messagerohit srivastava wrote: > Answers in programming language : Java > > > Question 1: Explain the difference between the following modifiers > through examples: > > § Abstract > § Final Class > § Public > > Question 2: Through a small example, Explain the following: > > i) Concept of Subclasses, Super classes and Inheritance > ii) What is the name of the top most class in the Java and where it > is defined > > Question 3: List and explain the main features of Java (for e.g. > multi-threading) and identify the classes/package through which they > are supported. > > > > This is a Project Assignment. Answer the following question using > Java. > > Suppose that you have to computerize a car show room which keeps the > latest models of cars, and provides post sales services to customers. > > (i) List all important classes, their data structures and other > attributes. > (ii) Draw an inheritance diagram for the entire application which > should comprise of base classes and sub-classes. > (iii) Implement at least 3 modules. > (iv) Describe different reports to be produced by the programmer. > > > > > i shall be thankfull to those who will help me Hint: See: 1. http://www.mindprod.com/jgloss/homework.html ,especially this part: > "If you simply post your homework assignment verbatim, people will > slap you senseless. Don't even dare directly quote so much as a phrase > from it!" 2. your Java textbook Those should provide the answers, supposing you are not too lazy to do some reading. -- -Aki "Sus" Laukkanen
Post Follow-up to this messageOn 26 Oct 2004 04:38:31 -0700, r9937@india.com (rohit srivastava) wrote: >Answers in programming language : Java > > >Question 1: Explain the difference between the following modifiers >through examples: > >§ Abstract A style of Art. >§ Final Class The last class before Summer vacation. >§ Public All of us. >Question 2: Through a small example, Explain the following: > >i) Concept of Subclasses, Super classes and Inheritance I could go on about what Hitler said, but I think all classes are equal. >ii) What is the name of the top most class in the Java and where it >is defined At my college, the top class was our Senior Seminar. >Question 3: List and explain the main features of Java (for e.g. >multi-threading) and identify the classes/package through which they >are supported. My suitcate. >This is a Project Assignment. Answer the following question using >Java. > >Suppose that you have to computerize a car show room which keeps the >latest models of cars, and provides post sales services to customers. > >(i) List all important classes, their data structures and other >attributes. b.c.a a.c.b >(ii) Draw an inheritance diagram for the entire application which >should comprise of base classes and sub-classes. 1 -> 2 -> 3 >(iii) Implement at least 3 modules. Module 1, Module 2, Module 3 >(iv) Describe different reports to be produced by the programmer. Sick report, status report. > >i shall be thankfull to those who will help me -- now with more cowbell
Post Follow-up to this messagerohit srivastava <r9937@india.com> wrote: > Question 1: <cut: theoretical homework assignment> > Question 2: <cut: theoretical homework assignment> > Question 3: <cut: theoretical homework assignment> > This is a Project Assignment. Answer the following question using > Java. <cut: practical homework assignment> > i shall be thankfull to those who will help me Forget it. You obviously have no clue whatsoever about : - *why* you get homework, - *why* you need to do it _yourself_, and - the purpose of education in general. Don't spend any time on your education until you know the answers to all three points above: it's wasted energy (you've just proven that). -- Oscar Kind http://home.hccnet.nl/okind/ Software Developer for contact information, see website PGP Key fingerprint: 91F3 6C72 F465 5E98 C246 61D9 2C32 8E24 097B B4E2
Post Follow-up to this messageOn 26 Oct 2004 04:38:31 -0700, rohit srivastava <r9937@india.com> wrote: > Answers in programming language : Java > > > Question 1: Explain the difference between the following modifiers > through examples: > > § Abstract Declares that the class contains an abreviated, yet concise summary of it's features before any more elaborate methods. This is useful to to quickly decide if a given class can be useful for you > § Final Class Declares that this class can not ever contain references to other objects. The garbage collector needs to know which classes are "final" in order to be able to decide what can be deleted to create new objects. Think of "final classes" as the leafs in the Object Tree. > § Public Declares that the modified object is considered "public property". This means that all threads (see there) do all the work in methods of this class communally. Usually considered a bad idea, but left in the language specification by insistance of the USSR > Question 2: Through a small example, Explain the following: > > i) Concept of Subclasses, Super classes and Inheritance A Subclass is a class contained by another class. Subclasses were added to the language to allow more complicated code. Super Classes are classes that have proven their usefulness and utility time and again. Once a year, in a popular vote, this year's five super classes are elected. Super Classes may display "This is a Super Class" on the screen whenever their methods are called Inheritance is the concept of destroying an object to access the data it contains. Just like in real life, you inherit valuable things once someone close to you dies. Since you can not access data of "life" objects, they need to die before you can extract their information > ii) What is the name of the top most class in the Java and where it > is defined The Top class is without a doubt javax.security.auth.login.AccountNotFoundException. Why? because it became a super class three times in a row, and the comitee decided to commemorate that event by declaring it the top class. > Question 3: List and explain the main features of Java (for e.g. > multi-threading) and identify the classes/package through which they > are supported. Trick Question. There are no features. There are only bugs. > This is a Project Assignment. Answer the following question using > Java. > > Suppose that you have to computerize a car show room which keeps the > latest models of cars, and provides post sales services to customers. > > (i) List all important classes, their data structures and other > attributes. > (ii) Draw an inheritance diagram for the entire application which > should comprise of base classes and sub-classes. > (iii) Implement at least 3 modules. > (iv) Describe different reports to be produced by the programmer. Hmm, car show room. Kind of a classic example. Many plebians will try to convince you that you need classes like 'Car'. But they forget the basic classes like CuteSalesGirl or DumbCustomerWithHeapsOfUnusedCashToSpare . Begin by building a GUI that supports the latest in 3d technology to display the cars on display (and the CuteSalesGirl). > i shall be thankfull to those who will help me I shall hope thou findest these humble suggestions helpful, sire j/k Stefan -- Whom the gods wish to destroy they first call promising.
Post Follow-up to this messageROFL - I love this one! "Stefan Schulz" <terra@spacetime.de> wrote in message news:opsgh1w0zeq1fd9p@localhost... > On 26 Oct 2004 04:38:31 -0700, rohit srivastava <r9937@india.com> wrote: > > > Declares that the class contains an abreviated, yet concise summary of > it's features before any more elaborate methods. This is useful to > to quickly decide if a given class can be useful for you > > > Declares that this class can not ever contain references to other objects. > The garbage collector needs to know which classes are "final" in order to > be able to decide what can be deleted to create new objects. > > Think of "final classes" as the leafs in the Object Tree. > > > Declares that the modified object is considered "public property". This > means that all threads (see there) do all the work in methods of this > class communally. Usually considered a bad idea, but left in the language > specification by insistance of the USSR > > > A Subclass is a class contained by another class. Subclasses were added > to the language to allow more complicated code. > > Super Classes are classes that have proven their usefulness and utility > time and again. Once a year, in a popular vote, this year's five super > classes are elected. Super Classes may display "This is a Super Class" > on the screen whenever their methods are called > > Inheritance is the concept of destroying an object to access the data > it contains. Just like in real life, you inherit valuable things > once someone close to you dies. Since you can not access data of > "life" objects, they need to die before you can extract their information > > > The Top class is without a doubt > javax.security.auth.login.AccountNotFoundException. Why? because it > became a super class three times in a row, and the comitee decided to > commemorate that event by declaring it the top class. > > > Trick Question. There are no features. There are only bugs. > > > Hmm, car show room. Kind of a classic example. Many plebians will try to > convince you that you need classes like 'Car'. But they forget the basic > classes like CuteSalesGirl or DumbCustomerWithHeapsOfUnusedCashToSpare . > > Begin by building a GUI that supports the latest in 3d technology to > display the cars on display (and the CuteSalesGirl). > > > I shall hope thou findest these humble suggestions helpful, sire > > j/k > > Stefan > > -- > > Whom the gods wish to destroy they first call promising. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.781 / Virus Database: 527 - Release Date: 10/21/2004
Post Follow-up to this messageStefan Schulz wrote: > On 26 Oct 2004 04:38:31 -0700, rohit srivastava <r9937@india.com> wrote: > > > > Declares that the class contains an abreviated, yet concise summary of > it's features before any more elaborate methods. This is useful to > to quickly decide if a given class can be useful for you > > > > Declares that this class can not ever contain references to other objects. > The garbage collector needs to know which classes are "final" in order to > be able to decide what can be deleted to create new objects. > > Think of "final classes" as the leafs in the Object Tree. > > > > Declares that the modified object is considered "public property". This > means that all threads (see there) do all the work in methods of this > class communally. Usually considered a bad idea, but left in the language > specification by insistance of the USSR > > > > A Subclass is a class contained by another class. Subclasses were added > to the language to allow more complicated code. > > Super Classes are classes that have proven their usefulness and utility > time and again. Once a year, in a popular vote, this year's five super > classes are elected. Super Classes may display "This is a Super Class" > on the screen whenever their methods are called > > Inheritance is the concept of destroying an object to access the data > it contains. Just like in real life, you inherit valuable things > once someone close to you dies. Since you can not access data of > "life" objects, they need to die before you can extract their information > > > > The Top class is without a doubt > javax.security.auth.login.AccountNotFoundException. Why? because it > became a super class three times in a row, and the comitee decided to > commemorate that event by declaring it the top class. > > > > Trick Question. There are no features. There are only bugs. > > > > Hmm, car show room. Kind of a classic example. Many plebians will try to > convince you that you need classes like 'Car'. But they forget the basic > classes like CuteSalesGirl or DumbCustomerWithHeapsOfUnusedCashToSpare . > > Begin by building a GUI that supports the latest in 3d technology to > display the cars on display (and the CuteSalesGirl). > > > > I shall hope thou findest these humble suggestions helpful, sire > > j/k > > Stefan > Nice! Pan ======================================== =========== TechBookReport: http://www.techbookreport.com/JavaIndex.html
Post Follow-up to this messageBryce wrote: > On 26 Oct 2004 04:38:31 -0700, r9937@india.com (rohit srivastava) > wrote: > > > > > A style of Art. > > > > > The last class before Summer vacation. > > > > > All of us. > > > > > I could go on about what Hitler said, but I think all classes are > equal. > > > > > At my college, the top class was our Senior Seminar. > > > > > My suitcate. > > > > > b.c.a > a.c.b > > > > > 1 -> 2 -> 3 > > > > > Module 1, Module 2, Module 3 > > > > > Sick report, status report. > > > > > > -- > now with more cowbell :-) Not the answers he wanted, I think. -- -Aki "Sus" Laukkanen
Post Follow-up to this messageStefan Schulz wrote: > On 26 Oct 2004 04:38:31 -0700, rohit srivastava <r9937@india.com> wrote: > > > > Declares that the class contains an abreviated, yet concise summary of > it's features before any more elaborate methods. This is useful to > to quickly decide if a given class can be useful for you > > > > Declares that this class can not ever contain references to other objects. > The garbage collector needs to know which classes are "final" in order to > be able to decide what can be deleted to create new objects. > > Think of "final classes" as the leafs in the Object Tree. > > > > Declares that the modified object is considered "public property". This > means that all threads (see there) do all the work in methods of this > class communally. Usually considered a bad idea, but left in the language > specification by insistance of the USSR > > > > A Subclass is a class contained by another class. Subclasses were added > to the language to allow more complicated code. > > Super Classes are classes that have proven their usefulness and utility > time and again. Once a year, in a popular vote, this year's five super > classes are elected. Super Classes may display "This is a Super Class" > on the screen whenever their methods are called > > Inheritance is the concept of destroying an object to access the data > it contains. Just like in real life, you inherit valuable things > once someone close to you dies. Since you can not access data of > "life" objects, they need to die before you can extract their information > > > > The Top class is without a doubt > javax.security.auth.login.AccountNotFoundException. Why? because it > became a super class three times in a row, and the comitee decided to > commemorate that event by declaring it the top class. > > > > Trick Question. There are no features. There are only bugs. > > > > Hmm, car show room. Kind of a classic example. Many plebians will try to > convince you that you need classes like 'Car'. But they forget the basic > classes like CuteSalesGirl or DumbCustomerWithHeapsOfUnusedCashToSpare . > > Begin by building a GUI that supports the latest in 3d technology to > display the cars on display (and the CuteSalesGirl). > > > > I shall hope thou findest these humble suggestions helpful, sire > > j/k > > Stefan :-) & :-) Maybe even better than Bryce's answers. -- -Aki "Sus" Laukkanen
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.