Skip to content

The object of this code is to test a person's knowledge of whether they know Object Oriented Programming specifically inheritance. A | | B / \ / \ C D 1) B u = new C(); 2) D v = (D)u; 3) C w = (C)u; 4) D x = (D)(new A()); 5) A x = (A)(new D()); 6) D y = new D(); 7) C z = (C)y;

franaiello/InheritanceTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 

Repository files navigation

The object of this code is to test a person's knowledge of whether they know Object Oriented Programming specifically inheritance.

           A
           |
           |
           B
          / \
         /   \
        C     D
  1. B u = new C();
  2. D v = (D)u;
  3. C w = (C)u;
  4. D x = (D)(new A());
  5. A x = (A)(new D());
  6. D y = new D();
  7. C z = (C)y;

About

The object of this code is to test a person's knowledge of whether they know Object Oriented Programming specifically inheritance. A | | B / \ / \ C D 1) B u = new C(); 2) D v = (D)u; 3) C w = (C)u; 4) D x = (D)(new A()); 5) A x = (A)(new D()); 6) D y = new D(); 7) C z = (C)y;

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages