What are the c++ access specifiers?
In C++, there are three access specifiers: public - members are accessible from outside the class. private - members cannot be accessed (or viewed) from outside the class. protected - members cannot be accessed from outside the class, however, they can be accessed in inherited classes.
Is This Answer Correct ? | 0 Yes | 0 No |
What are vectors used for in c++?
Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300â€Â,â€ÂBullCart : 10â€Â) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side
What is the use of endl in c++ give an example?
What are the different types of polymorphism?
What is jump statement in C++?
Which is better c++ or java?
Can constructor be static in c++?
What are the important differences between c++ and java?
Are strings mutable in c++?
Define virtual constructor.
Why preincrement operator is faster than postincrement?
What are the types of pointer?