Embed
Email

Discussions

Document Sample

Shared by: xiuliliaofz
Categories
Tags
Stats
views:
13
posted:
11/5/2011
language:
English
pages:
3
Module 13



Can Tardiness Be Inherited? PIGFORD July 31, 2011 7:42 PM



I've looked at the posts, and can not find a way to intelligently say anything new. I went to a Microsoft

Server 2003 course at the beginning of the month, and the concept of inheritance was talked about. To

me, the same concepts exist. Properties of programs can be inherited and used to save time and to

make sure the programmer is using a program that has already been proven successful instead of using

trial and error.









Module 13



Inheritance allows for a class to be the root and subclasses to branch off from it 2 ROOKER July 31,

2011 11:26 AM



The great thing about inheritance is that it is the root that allows other subclasses to branch off from it.

This means that the traits and abilities of the root class can be shared and passed onto subclasses, which

in essence allows you to add features to the subclass without having to plant a new root. I hope that

makes sense.









Module 13

Concept of inheritance 3 CULBERT July 26, 2011 1:14 AM



The concept of inheritance is that its an object oriented feature supported by Java. It creates a parent

child relationship between the 2 classes. Class Inheritance in java mechanism is used to build new

classes from existing classes. One of the key benefits of inheritance is to minimizes the amount of

duplicate code in an application. Results in better organization of code and simpler compilation units.

Module 14

Overriding and Overloading 3 ( 1 Unread ) ZZUCCO July 30, 2011 9:52 PM



How I distinguish the difference between overloading and overriding is by their signatures. In

overloading you have more than one method using the same name, the difference between the

methods is the number of arguments each one has. Making their signatures different. In overriding you

have the same exact signature of a method in both a super and subclass using the subclasses method to

override the data of the superclass. Advantages are this saves you additional code writing thus saving

you time.









Module 14

Similiar but different. FOX July 31, 2011 12:33 AM



Overloading is used when you want to have multiple ways to pass data to a class(maybe only pass 2

variables instead of 3). Overriding is when you want the sibling class to have a method of the same

name, passing the same number and type of variables but act different than the original aka overriding

it.





Module 14

Overloading vs.overrriding 3 ( 2 Unread ) STARUNOV July 31, 2011 9:22 PM



Basically, the two serve different purposes.

Overloading is good for introducing polymorphism. Calling same method name will have different

meanings for different (sets of) arguments.

Overriding will help you to adjust an existing class to a new application. It allows you to keep an existing

class and replace its method(s) that do(es) not serve your goals

Module 15

Hard or Harder!!! WHEATLEY August 2, 2011 10:21 PM



Overall objected oriented programming has been great, I would like to add that without learning the

traditional part of programming I dont think I could of had the understanding that I do now. I think the

advantages of both help you understand how applications work and how things in life as we know it are

performed. The disadvantages are that without one it would be hard to understand the other. Overall I

think working with both gives you the best of both worlds the hard with the not so hard.



Related docs
Other docs by xiuliliaofz
Dreaming
Views: 2  |  Downloads: 0
Maurice White BDSc Melb
Views: 0  |  Downloads: 0
article-7901
Views: 0  |  Downloads: 0
Application - City of Laramie
Views: 0  |  Downloads: 0
Project Outline - TeacherWeb
Views: 0  |  Downloads: 0
NSSE EDUCATION
Views: 0  |  Downloads: 0
me344_f03
Views: 0  |  Downloads: 0
Experiment_11a
Views: 0  |  Downloads: 0
CHAPTER 16
Views: 0  |  Downloads: 0
Distributed Data Base Systems
Views: 3  |  Downloads: 0
By registering with docstoc.com you agree to our
privacy policy

You are almost ready to download!

You are almost ready to download!