Jump to content


What is Class Design (Java)

  • Please log in to reply
2 replies to this topic

#1 atyemail



  • Tech Issues Solved: 2
  • Joined: 09-August 13

Posted 22 October 2013 - 20:17

Can somebody explain me what is class design? 

#2 Kami-


    ♫ d(-_-)b ♫

  • Tech Issues Solved: 3
  • Joined: 28-July 08
  • Location: SandBox

Posted 23 October 2013 - 11:29

Designing classes, for more information on what classes are: http://docs.oracle.c...epts/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.

#3 +Majesticmerc


    Resident Idealist

  • Tech Issues Solved: 9
  • Joined: 24-August 05
  • Location: United Kingdom
  • OS: Arch Linux / Win 7
  • Phone: HTC One X

Posted 23 October 2013 - 11:49

("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...


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).