PROG24178 Study Guide - Midterm Guide: Scientific Calculator, Abstract Window Toolkit, Global Variable

253 views2 pages

Document Summary

If we make a class static, it means it can only make static methods and static variables. class obj=new class(constructor);//any object carries null by default until it is assigned memory. You need to go in order to do the methods, but objects do not need to go in order. The hierarachy says that first there is an object class then java then lang then util then io and awt and other packages. Abstract is a partial class, where interface is a pure class. Shadowing is when local takes preference over a global variable. If the superclass and subclass have the same method, if we call the subclass, it will call the local method. If we create an object of subclass, it will call the same method. The role of final means that it cannot be changed or modified in any way. Super is to call parent class methods, method variables, and constructors.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents

Related Questions