git.go-v.org

interjonas/Inheritance-Polymorphic-Data-Structure

I designed this program as per project specifications. This was one of my earlier projects in Java where I was required to follow the central tenets of inheritance and polymorphism between different classes. The project guidelines had stated to have a parent class titled "Drink" and two child classes labeled "DrinkInBox" and "DrinkCylinder". The Drink parent class was required to be an abstract class, so no instance of that class was to be declared but rather only one of its child classes can be instantiated. Drink parent object holds some common overlapping information such as name, productID, and unit price. Then the two subclasses hold more specific questions like product dimensions and angles. The user enters data into the program following a standard format. The program must then parse the given information, determine which object to initiate and build the correct data structure with the correct values. Then the newly initiated data structure must be stored in memory so the user can access formerly created objects.

source: Software Heritage origin index (GitHub origins)licence: Per source; see source termsdatabase: /home/dbs/git.dbmode: tablerecords: 52124602 (max_rowid)citation: —

I designed this program as per project specifications. This was one of my earlier projects in Java where I was required to follow the central tenets of inheritance and polymorphism between different classes. The project guidelines had stated to have a parent class titled "Drink" and two child classes labeled "DrinkInBox" and "DrinkCylinder". The Drink parent class was required to be an abstract class, so no instance of that class was to be declared but rather only one of its child classes can be instantiated. Drink parent object holds some common overlapping information such as name, productID, and unit price. Then the two subclasses hold more specific questions like product dimensions and angles. The user enters data into the program following a standard format. The program must then parse the given information, determine which object to initiate and build the correct data structure with the correct values. Then the newly initiated data structure must be stored in memory so the user can access formerly created objects.

source: Software Heritage origin index (GitHub origins)licence: Per source; see source termsyear: —id: interjonas/Inheritance-Polymorphic-Data-Structurecitation: https://git.go-v.org/record/interjonas%2FInheritance-Polymorphic-Data-Structurecharacters: 1,035

record · JSON · record JSON · CSV

Cite this record

MLA
"interjonas/Inheritance-Polymorphic-Data-Structure." Software Heritage origin index (GitHub origins), n.d., https://git.go-v.org/fulltext/interjonas%2FInheritance-Polymorphic-Data-Structure.

Chicago
"interjonas/Inheritance-Polymorphic-Data-Structure." Software Heritage origin index (GitHub origins). n.d.. https://git.go-v.org/fulltext/interjonas%2FInheritance-Polymorphic-Data-Structure.

APA
Software Heritage origin index (GitHub origins). (n.d.). interjonas/Inheritance-Polymorphic-Data-Structure. https://git.go-v.org/fulltext/interjonas%2FInheritance-Polymorphic-Data-Structure

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.