How to call delegate methods from other class in Swift?

Write an progarm that has has d emplyee as the base class with the following reqirements:?

  • write an progarm that has has d emplyee as the base class with the following reqirements: a-> emp class must have two member variable,billrate and name.the billrate vraiable should be accessble to drived class bt the name variable should not be accessble to the drived classes. b-the emp class should also hve abstract methods,calculate charges(float hours) and Type NAME c- the emp class should also hve an overloaded constructor to initialize the member variable. d- the executive and manager class shold be the two subclasses the are drived from the emp base class.the contructor of drived class should invoke the contructor of the base class. e-accept the value of the variable, billrate for manager and executive class call the calculate charges(float hours) method to calculate the charges. f-the main() method should create objective of the drived classes and invokes their methods and displying the values plz help me...................i m a biggner

  • Answer:

    Try this -

Joy Patra at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Try this -

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.