C# Class Polymorphism.Mobile

Its an incomplete functional class. So, its riskful to use incomplete functionality Thats why compiler Restrict the developer to make the class abstract which contain any abstract method.
Afficher le fichier Open project: fahidnasir/DotNet-ShortCourse2015

Méthodes publiques

Méthode Description
GetMobileSerialNumber ( ) : string
MakeCall ( string phoneNumber ) : bool

Same as the above method every method also make the Call. So, What is the reason not to make these methods concrete? Because every mobile have its own mechanism to dial the call.

Mobile ( ) : System
Mobile ( string serialNumber ) : System
SendSMS ( string phoneNumber, string smsText ) : bool

Same as the above method every method also make the Call. So, What is the reason not to make these methods concrete? Because every mobile have its own mechanism to send the sms.

Method Details

GetMobileSerialNumber() public méthode

public GetMobileSerialNumber ( ) : string
Résultat string

MakeCall() public abstract méthode

Same as the above method every method also make the Call. So, What is the reason not to make these methods concrete? Because every mobile have its own mechanism to dial the call.
public abstract MakeCall ( string phoneNumber ) : bool
phoneNumber string
Résultat bool

Mobile() public méthode

public Mobile ( ) : System
Résultat System

Mobile() public méthode

public Mobile ( string serialNumber ) : System
serialNumber string
Résultat System

SendSMS() public abstract méthode

Same as the above method every method also make the Call. So, What is the reason not to make these methods concrete? Because every mobile have its own mechanism to send the sms.
public abstract SendSMS ( string phoneNumber, string smsText ) : bool
phoneNumber string
smsText string
Résultat bool