O GoConqr está de visual novo! Conte para nós o que você achou.

Flashcards

Quiz Study 1302

marc30599 . Inglês 13 flashcards

Flashcards do conjunto (13)

  1. 1InheritanceDeriving from a parent class to a child class
  2. 2AggregationOne thing is apart of another thing
  3. 3Inheritance 2nd def.A specialized version of another thing
  4. 4Protected VisibilityLevel of visibility with access inside the class it was defined and any of its child classes
  5. 5Private VisibilityIs a level of visibility with access only to the class in which its defined.
  6. 6Public VisibilityVisibility with access everywhere
  7. 7What keyword denotes Inheritance? and how would you write it?"extends" keyword It is written as "ClassName 'extends' ClassName"
  8. 8What Type of Relationship is Inheritance?it is "Parent-Child Relationship"
  9. 9How to write a static method'Public Static Main(String[ ] args)'
  10. 10How to Call A Static Methodpublic class ShapeMethodTester{
    public static void main(String[] args){ ShapeMethods.circleArea(14.2);}
    }
  11. 11When would you make a method static? (there are two possible reasons)If a method doesn't modify state of object, or not using any instance variables. Or You want to call method without creating instance of that class.
  12. 12How to write an aggregation in Java?//Creating HAS-A relationship with Address class
    ' Address studentAddr; '
  13. 13What type of relationship is Aggregation?The relationship is a "Has-A" relationship

Informações

Descrição
FlashCards sobre Quiz Study 1302, criado por marc30599 . em 02-10-2018.
Criado por
marc30599 .
Visualizações
0
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?