• 0

What is Class Design (Java)


Question

2 answers to this question

Recommended Posts

  • 0

Designing classes, for more information on what classes are: http://docs.oracle.com/javase/tutorial/java/concepts/class.html

 

Note: I posted the link to Java class examples due to the (Java) in topic, there are nicer examples to read through in other OOP based languages.

  • 0

("Class design" can be a bit of vague topic, so the following is the way I see it, but not necessarily the way your professor may see it)

Designing a class is the process of describing a class in an simple form, without going into any code. Think of it a bit like pseudocode for an object. Primarily, class design focuses on the public (and protected) properties of the class (public methods, constructors, public members, etc), without including the private stuff that actually makes it work.

High-level class design allows you to get a grasp of how objects may interact with each other before you write any code. The following is a basic UML class diagram showing the class design of three classes...

500px-KP-UML-Generalization-20060325.svg

In the example above, the three classes are Person, Student and Professor. The Person class is general and contains only general "Person" data, the Student and Professor are specializations of the Person class (i.e. they inherit it).

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • hi thanks for input. those two modems are supported  thankfully. i really am leaning towards the b12 though since there's a few complaints of the cm3000 and its chipset (drops and whatnot), although those might just be vocal minority complaints.
    • A PDF or text file is all you need for Copilot to generate a PowerPoint for you in seconds by Usama Jawad Assistive AI is all the rage these days. In the past few hours alone, we have witnessed AI summaries on YouTube, context-aware text generation capabilities in Google Sheets, Gemini tools on the cloud, the availability of additional AI models with smarter defaults in Visual Studio, and chat summarization on WhatsApp. Now, Microsoft has detailed an upcoming Copilot capability in PowerPoint. Microsoft has outlined a streamlined approach to creating PowerPoint presentations within seconds using a PDF or text file, and a natural language prompt as input. Previously, you could just ground Word files for this purpose, so support for additional formats is certainly welcome. In order to generate a slide deck using Copilot, you can simply open a PowerPoint presentation in the platform of your choice and click the Copilot button. In the resulting Copilot pane, select the "Create a presentation from a file" option, which allows you to type in the name of a PDF or text file stored on the cloud or browse for files in OneDrive or SharePoint manually using the "Attach cloud files" button. You can then refine your prompt by adding details about items that you'd like Copilot to focus on and click the "Send" button. This will generate the slide deck which you can rearrange or add more topics to, before you create the final version of the presentation. Of course, this is a particularly useful feature in many scenarios including those which require you to create a slide deck based on some detailed documentation that you have already completed. That said, it's obviously worth vetting any content that Copilot creates, since data inaccuracy is still a concern when it comes to AI models. This feature is available to Insiders across PowerPoint for web, Windows, and Mac for the following versions: Windows: Version 2409 (Build 18025.20000) or later Mac: Version 16.88 (Build 24082514) or later That said, you do need an Enterprise Copilot license in order to utilize the AI assistant in this way.
    • >For instance, if you are watching a tutorial, you could ask for a summary or even for a quiz on the main points. At that point, the content creator should get their cut, Google. Instead: >If people are getting everything they need from a summary without ever clicking through, there's not much reason to watch the actual video. That means fewer views, less watch time, and less money. Do content creators get to write their own summaries or turn off Google's summary content thievery? Somehow I doubt it...
    • I know with my isp they will only support certain models. You might want to check with them,
  • Recent Achievements

    • One Month Later
      jfam earned a badge
      One Month Later
    • First Post
      TheRingmaster earned a badge
      First Post
    • Conversation Starter
      Kavin25 earned a badge
      Conversation Starter
    • One Month Later
      Leonard grant earned a badge
      One Month Later
    • Week One Done
      pcdoctorsnet earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      552
    2. 2
      ATLien_0
      205
    3. 3
      +FloatingFatMan
      180
    4. 4
      Michael Scrip
      147
    5. 5
      Som
      119
  • Tell a friend

    Love Neowin? Tell a friend!