Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How would you stop a class from class from being derived or
inherited.

Answer Posted / stavanm

By Creating class as a final

final class A{
// code
}

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use oop?

1037


What is the renewal class?

2682


Is oop better than procedural?

970


Are polymorphisms mutations?

1107


What are the benefits of polymorphism?

1158


when to use 'mutable' keyword and when to use 'const cast' in c++

2104


What is class and object with example?

1055


what type of question are asked in thoughtworks pair programming round ?

2143


Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.

1168


what is different between oops and c++

2455


What is a superclass in oop?

1109


What are the components of marker interface?

996


c++ program to swap the objects of two different classes

2357


What is meant by multiple inheritance?

1177


Why is polymorphism important in oop?

1010