the properties and methods of another class while adding its own functionality. An example of where this could be useful is with an employee records system. You could create a generic employee class with states and actions that are common to all employees. Then more specific classes could be defined for salaried, commissioned and hourly employees. The generic class is known as the parent or superclass or base class
Posted in
Computers & Technology by rocky singh
at
2:07 PM on June 26, 2008
capability. Instead of building a table of employees with department and job information in separate tables, the type of employee is modeled. The employee class contains the data and the processing for all employees. Each subclass manager, secretary, etc. contains the data and processing unique to that persons job. Changes can be made globally or individually by modifying the class in question....Object Oriented
Posted in
Computers & Technology by Deepti Mehta
at
5:56 PM on May 30, 2008
well, To understand objects, you must understand classes. To understand classes, you need to understand objects. Its a circular process of learning. But youve got to begin somewhere. So, lets begin with two classes-- Point and Rectangle-- that are small and easy to understand. This section provides a brief discussion of these classes and introduces some important concepts and terminology.In object
Posted in
Computers & Technology by
Sharad Singh
at
5:25 PM on May 17, 2008
.Namespaces in Java are not hierarchical as far as the syntax of the language is concerned. However, packages are named in a hierarchical manner. Bill works for company X and his employee ID is 123. John works for company Y and his employee ID is also 123. The reason Bill and John can be identified by the same ID number is because they work for different companies. The different companies in this case would symbolize
Posted in
Computers & Technology by
ajay kumar
at
12:49 AM on May 07, 2008
ties in nicely with the "inheritance" theme.The Employee class is a superclass, but not because it is superior to its subclass or contains more functionality. In fact, the opposite is true, and this is described by saying it is a superset of the set of managers. Or, put it another way, the set of all managers is a subset of the set of all employees.Our Manager class has a new field to store the bonus, and a
Posted in
Computers & Technology by
SUNIL .
at
6:44 AM on September 19, 2008
.e.g.public class Employee extends Person, Employment // detail omittedHere, Person is a concrete class that represents a person, while Employment is another concrete class that represents the details of a person who is employed. If you could only put them together, you would have everything necessary to define and implement an Employee class. Except in Java - you cant. Inheriting implementation from more than one
Posted in
Computers & Technology by
jaivir
at
7:52 PM on May 16, 2008
particular data type or instance to another.Example:using System; class Employee class ContractEmployee : Employee class CastExample5 public static void Main Employee e = new Employee; Console, which is an instance of the class Employee, is type cast as an instance of the class ContractEmployee and stored in element c.Certain datatypes are incompatible for type casting. For example, an integer
Posted in
Computers & Technology by Radhe Radhe
at
8:28 PM on May 30, 2008
general portfolio frens
Posted in
Office Products by Anonymous
at
2:09 AM on September 25, 2009
. and sometimes the benefits are subtle and hard to explain.Heres a simple example - suppose we record students who take classes and the teachers who teach them. If we put all the data in a single large record.Heres a simple example - suppose we record students who take classes and the teachers who teach them. If we put all the data in a single large record, then we are entering the teachers name, room number
Posted in
Computers & Technology by Raj Ahmed
at
11:31 PM on July 08, 2008
in C is "private".When you declare a class , it would be private by default.To create a class private , you simply use the keyword "class" followed by the class name: class Employee You can precede the class keyword with an access modifier keyword : public class Employee Private member is only accessible by other members within the type it originates from....Hiii,Types of Access
Posted in
Computers & Technology by Kishor More
at
5:52 PM on June 18, 2008
apparently fixed this problem. If youre receiving frequent GPF errors with WSIRC, you may wish to update or switch to another IRC client....To avoid the duplicated base class subobject that occursJust below the top of the diamond, not at the join-class.To avoid the duplicated base class subobject that occurs with the "dreaded diamond", you should use the virtual keyword
Posted in
Computers & Technology by Vinay
at
12:00 AM on December 04, 2008
Concepts of OOP: Objects Classes Data Abstraction and Encapsulation Inheritance PolymorphismBriefly on Concepts:ObjectsObject s are the basic run-time entities in an object-oriented system. Programming problem without knowing the details of their data or code.ClassesA class is a collection of objects of similar type. Once a class is defined, any number of objects can be created which belong to that class
Posted in
Computers & Technology by Aruna Kumari
at
2:08 PM on September 24, 2008